ipv4: add a sock pointer to dst->output() path.
authorEric Dumazet <edumazet@google.com>
Tue, 15 Apr 2014 17:47:15 +0000 (13:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Apr 2014 17:47:15 +0000 (13:47 -0400)
commitaad88724c9d54acb1a9737cb6069d8470fa85f74
tree78cc7b925f3d05338373898f018892b8f434a948
parentb0270e91014dabfceaf37f5b40ad51bbf21a1302
ipv4: add a sock pointer to dst->output() path.

In the dst->output() path for ipv4, the code assumes the skb it has to
transmit is attached to an inet socket, specifically via
ip_mc_output() : The sk_mc_loop() test triggers a WARN_ON() when the
provider of the packet is an AF_PACKET socket.

The dst->output() method gets an additional 'struct sock *sk'
parameter. This needs a cascade of changes so that this parameter can
be propagated from vxlan to final consumer.

Fixes: 8f646c922d55 ("vxlan: keep original skb ownership")
Reported-by: lucien xin <lucien.xin@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
19 files changed:
drivers/net/vxlan.c
include/net/dst.h
include/net/ip.h
include/net/ip_tunnels.h
include/net/ipv6.h
include/net/xfrm.h
net/core/dst.c
net/decnet/dn_route.c
net/ipv4/ip_output.c
net/ipv4/ip_tunnel.c
net/ipv4/ip_tunnel_core.c
net/ipv4/route.c
net/ipv4/xfrm4_output.c
net/ipv6/ip6_output.c
net/ipv6/route.c
net/ipv6/sit.c
net/ipv6/xfrm6_output.c
net/openvswitch/vport-gre.c
net/xfrm/xfrm_policy.c