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: 8f646c92 ("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>
Showing
- drivers/net/vxlan.c 2 additions, 2 deletionsdrivers/net/vxlan.c
- include/net/dst.h 11 additions, 3 deletionsinclude/net/dst.h
- include/net/ip.h 8 additions, 3 deletionsinclude/net/ip.h
- include/net/ip_tunnels.h 1 addition, 1 deletioninclude/net/ip_tunnels.h
- include/net/ipv6.h 1 addition, 1 deletioninclude/net/ipv6.h
- include/net/xfrm.h 3 additions, 3 deletionsinclude/net/xfrm.h
- net/core/dst.c 9 additions, 6 deletionsnet/core/dst.c
- net/decnet/dn_route.c 14 additions, 2 deletionsnet/decnet/dn_route.c
- net/ipv4/ip_output.c 5 additions, 6 deletionsnet/ipv4/ip_output.c
- net/ipv4/ip_tunnel.c 1 addition, 1 deletionnet/ipv4/ip_tunnel.c
- net/ipv4/ip_tunnel_core.c 2 additions, 2 deletionsnet/ipv4/ip_tunnel_core.c
- net/ipv4/route.c 2 additions, 2 deletionsnet/ipv4/route.c
- net/ipv4/xfrm4_output.c 1 addition, 1 deletionnet/ipv4/xfrm4_output.c
- net/ipv6/ip6_output.c 1 addition, 1 deletionnet/ipv6/ip6_output.c
- net/ipv6/route.c 7 additions, 7 deletionsnet/ipv6/route.c
- net/ipv6/sit.c 3 additions, 2 deletionsnet/ipv6/sit.c
- net/ipv6/xfrm6_output.c 1 addition, 1 deletionnet/ipv6/xfrm6_output.c
- net/openvswitch/vport-gre.c 1 addition, 1 deletionnet/openvswitch/vport-gre.c
- net/xfrm/xfrm_policy.c 1 addition, 1 deletionnet/xfrm/xfrm_policy.c
Loading
Please register or sign in to comment