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)
commitf0b1e64c1331dd8a2f0c30fcd0838db6cb406098
tree6ce059baf578caa9114dfaa6951a242004eca20f
parent76d013b20ba9a5f88eee7c90ac82cbc3ee64be18
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