net: Make ip_ra_chain per struct net
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 22 Mar 2018 09:45:32 +0000 (12:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:12:56 +0000 (15:12 -0400)
commit5796ef75ec7b6019eac88f66751d663d537a5cd3
tree227c356176272dcbfb2ed06586043863bff2a3a9
parent128aaa98ad1422eacc4c74879840cb3e579cd934
net: Make ip_ra_chain per struct net

This is optimization, which makes ip_call_ra_chain()
iterate less sockets to find the sockets it's looking for.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/netns/ipv4.h
net/ipv4/ip_input.c
net/ipv4/ip_sockglue.c