]> git.baikalelectronics.ru Git - kernel.git/commit
[UDP]: Make full use of proto.h.udp_hash innovation.
authorPavel Emelyanov <xemul@openvz.org>
Sat, 22 Mar 2008 23:51:21 +0000 (16:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Mar 2008 23:51:21 +0000 (16:51 -0700)
commitb21c226944be6f2ca9ae79ac2633c8774a389df8
tree0cbccb2dac9307cec25176eb94ff4f406a2061f7
parentb1dc6aa4b4fad3c8a8073af6ff151d260db657f5
[UDP]: Make full use of proto.h.udp_hash innovation.

After this we have only udp_lib_get_port to get the port and two
stubs for ipv4 and ipv6. No difference in udp and udplite except
for initialized h.udp_hash member.

I tried to find a graceful way to drop the only difference between
udp_v4_get_port and udp_v6_get_port (i.e. the rcv_saddr comparison
routine), but adding one more callback on the struct proto didn't
appear such :( Maybe later.

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