[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4927AF61.40002@cosmosbay.com>
Date: Sat, 22 Nov 2008 08:06:09 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: [PATCH] net: some optimizations in af_inet
1) Use eq_net() in inet_netns_ok() to speedup socket creation if !CONFIG_NET_NS
2) Reorder the tests about inet_ehash_secret generation (once only)
Use the unlikely() macro when testing if inet_ehash_secret already generated.
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
View attachment "af_inet.patch" of type "text/plain" (787 bytes)
Powered by blists - more mailing lists