]> git.baikalelectronics.ru Git - kernel.git/commit
ip/options: explicitly provide net ns to __ip_options_echo()
authorPaolo Abeni <pabeni@redhat.com>
Thu, 3 Aug 2017 16:07:06 +0000 (18:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 03:51:12 +0000 (20:51 -0700)
commita8362a2a980ed7ebb3a11a4d2eedcda24b1dc996
treea05e165ba6029e23c0308eaadb958cc863f2c5da
parent6fd8ff7ed26d29e824d66948220c0a7f5538fd09
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