[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1357435646.1678.5082.camel@edumazet-glaptop>
Date: Sat, 05 Jan 2013 17:27:26 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Hannes Frederic Sowa <hannes@...essinduktion.org>
Cc: Stephen Hemminger <shemminger@...tta.com>, netdev@...r.kernel.org,
davem@...emloft.net
Subject: Re: [PATCH] tcp: make sysctl_tcp_ecn namespace aware
On Sun, 2013-01-06 at 02:18 +0100, Hannes Frederic Sowa wrote:
>
> I just verified that req->sk is indeed not initialized at that point. I
> had a kernel panic on the first syn packet. So I would propose to keep
> the patch as it is.
>
Please pass the "struct net" pointer instead, so that the tcp_ecn
dereference is done only if really needed.
Naming a function parameter, or an automatic variable, sysctl_tcp_ecn is
not very nice.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists