]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: replace ehash_size by ehash_mask
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 9 Oct 2009 00:16:19 +0000 (00:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2009 10:44:02 +0000 (03:44 -0700)
commit47bcf825db450880f2c5c21aa8622ef61e0e9bc0
treeb2cae9152aed2e30b7a39c114678b9355ab5c14f
parentaee5df5d856d620d6cd9bda428e818d92e18cc47
tcp: replace ehash_size by ehash_mask

Storing the mask (size - 1) instead of the size allows fast path to be
a bit faster.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/dccp/proto.c
net/ipv4/inet_diag.c
net/ipv4/inet_hashtables.c
net/ipv4/inet_timewait_sock.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/inet6_hashtables.c