commit | d6266281f8175e3ad68c28b20a609b278b47ade5 | [log] [tgz] |
---|---|---|
author | Pavel Emelyanov <xemul@openvz.org> | Mon Jun 16 17:11:50 2008 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Jun 16 17:11:50 2008 -0700 |
tree | 16e8643eb5560d70daf1097c3a09df21b6d186c1 | |
parent | 942e7b102a4827fdb69a39c7f07c544542589ef9 [diff] |
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>