From: Eric Dumazet Date: Tue, 15 Apr 2014 17:47:15 +0000 (-0400) Subject: ipv4: add a sock pointer to dst->output() path. X-Git-Tag: omap-for-v3.16/pm-signed~106^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad88724c9d54acb1a9737cb6069d8470fa85f74;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed