]> git.baikalelectronics.ru Git - kernel.git/commit
udp: introduce a udp_hashfn function
authorPavel Emelyanov <xemul@openvz.org>
Tue, 17 Jun 2008 00:11:50 +0000 (17:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 00:11:50 +0000 (17:11 -0700)
commit10f70f51a28e0b2755d0cb527805b5cde10afacf
tree16e8643eb5560d70daf1097c3a09df21b6d186c1
parent34ac819d541120d24bb3a02d17b8ce92dfd44ee0
udp: introduce a udp_hashfn function

Currently the chain to store a UDP socket is calculated with
simple (x & (UDP_HTABLE_SIZE - 1)). But taking net into account
would make this calculation a bit more complex, so moving it into
a function would help.

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