]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Move udp[46]_portaddr_hash() to net/ip[v6].h
authorMartin KaFai Lau <kafai@fb.com>
Fri, 1 Dec 2017 20:52:30 +0000 (12:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 15:18:28 +0000 (10:18 -0500)
commit46380d56b6ab21f5d485c07afa9575ba4754c415
tree6ce059baf578caa9114dfaa6951a242004eca20f
parent7988b3fed6abc648825c3d9296b3e8991f636d22
udp: Move udp[46]_portaddr_hash() to net/ip[v6].h

This patch moves the udp[46]_portaddr_hash()
to net/ip[v6].h.  The function name is renamed to
ipv[46]_portaddr_hash().

It will be used by a later patch which adds a second listener
hashtable hashed by the address and port.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/ipv6.h
net/ipv4/udp.c
net/ipv6/udp.c