]> git.baikalelectronics.ru Git - kernel.git/commit
net: use net_eq() in INET_MATCH and INET_TW_MATCH
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 21 Nov 2008 23:49:19 +0000 (15:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2008 23:49:19 +0000 (15:49 -0800)
commit0dec35bb91101824cd5860dbd3b3d9b7018ddff5
treed8fbf1095f723f8ad19014910a92a44ff2058c16
parent99f0ab8ff802550d7046947d1e8d7b3be833447f
net: use net_eq() in INET_MATCH and INET_TW_MATCH

We can avoid some useless instructions if !CONFIG_NET_NS

Because of RCU, we use INET_MATCH or INET_TW_MATCH twice for the found
socket, so thats six instructions less per incoming TCP packet.

Yet another tbench speedup :)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h