inet: add struct net argument to inet_ehashfn
authorPavel Emelyanov <xemul@openvz.org>
Tue, 17 Jun 2008 00:13:27 +0000 (17:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 00:13:27 +0000 (17:13 -0700)
commit9f26b3add3783c0af869ea2207871da5dafefffa
treeadadfc84d2daf5133c0c536d87242df049daf53e
parent2086a65078bd24682bdcf413d9c91d81988b8359
inet: add struct net argument to inet_ehashfn

Although this hash takes addresses into account, the ehash chains
can also be too long when, for instance, communications via lo occur.
So, prepare the inet_hashfn to take struct net into account.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
net/ipv4/inet_hashtables.c