ip/options: explicitly provide net ns to __ip_options_echo()
commit91ed1e666a4ea2e260452a7d7d311ac5ae852cba
authorPaolo Abeni <pabeni@redhat.com>
Thu, 3 Aug 2017 16:07:06 +0000 (3 18:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 03:51:12 +0000 (6 20:51 -0700)
treea05e165ba6029e23c0308eaadb958cc863f2c5da
parenta1e155ece1a5b68c4f845788e03a567574f606aa
ip/options: explicitly provide net ns to __ip_options_echo()

__ip_options_echo() uses the current network namespace, and
currently retrives it via skb->dst->dev.

This commit adds an explicit 'net' argument to __ip_options_echo()
and update all the call sites to provide it, usually via a simpler
sock_net().

After this change, __ip_options_echo() no more needs to access
skb->dst and we can drop a couple of hack to preserve such
info in the rx path.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/tcp.h
net/ipv4/icmp.c
net/ipv4/ip_options.c
net/ipv4/ip_output.c
net/ipv4/ip_sockglue.c
net/ipv4/syncookies.c
net/ipv4/tcp_ipv4.c