]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
packet: always probe for transport header
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 11 Nov 2015 22:25:41 +0000 (23:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 05:25:35 +0000 (21:25 -0800)
commitd0c41689d0cda0fd8f65705a61a4fca06e2c3d85
tree521661210577036bbfa0773e3e089642732f9031
parentf61bba5058b013442466f2d9fdc64b59dabe5cb1
packet: always probe for transport header

[ Upstream commit 8fd6c80d9dd938ca338c70698533a7e304752846 ]

We concluded that the skb_probe_transport_header() should better be
called unconditionally. Avoiding the call into the flow dissector has
also not really much to do with the direct xmit mode.

While it seems that only virtio_net code makes use of GSO from non
RX/TX ring packet socket paths, we should probe for a transport header
nevertheless before they hit devices.

Reference: http://thread.gmane.org/gmane.linux.network/386173/
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/packet/af_packet.c