]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: change ipv6_stub_impl.ipv6_dst_lookup to take net argument
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 30 Jul 2015 20:34:53 +0000 (13:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 22:21:30 +0000 (15:21 -0700)
commita1f1d537e803d0e95b35d8cd3af522a3d4c97ac1
tree1cd1a42dc4fcab67bb614649d385ace0c0a3f7a2
parentd2e32cd1bd1877070ee51a93093245e586b95d8e
ipv6: change ipv6_stub_impl.ipv6_dst_lookup to take net argument

This patch adds net argument to ipv6_stub_impl.ipv6_dst_lookup
for use cases where sk is not available (like mpls).
sk appears to be needed to get the namespace 'net' and is optional
otherwise. This patch series changes ipv6_stub_impl.ipv6_dst_lookup
to take net argument. sk remains optional.

All callers of ipv6_stub_impl.ipv6_dst_lookup have been modified
to pass net. I have modified them to use already available
'net' in the scope of the call. I can change them to
sock_net(sk) to avoid any unintended change in behaviour if sock
namespace is different. They dont seem to be from code inspection.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/addrconf.h
include/net/ipv6.h
net/ipv6/addrconf_core.c
net/ipv6/icmp.c
net/ipv6/ip6_output.c
net/tipc/udp_media.c