]> 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)
commit0351540ac09efe1027f4c93a71036ac68d5e7dc4
tree6ce059baf578caa9114dfaa6951a242004eca20f
parent8d7f3794fbe0b10e8061633ca3011e3812bb682c
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