]> git.baikalelectronics.ru Git - kernel.git/commit
net/packet: fix packet drop as of virtio gso
authorJianfeng Tan <jianfeng.tan@linux.alibaba.com>
Sat, 29 Sep 2018 15:41:27 +0000 (15:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 05:23:15 +0000 (22:23 -0700)
commit4b69b91dea15708c89885905945f0fcc6dfb6af6
tree015f9d003d764dbb4aea0fde8d2ea6c01eafd577
parent846cdda028bb115df39104ba55397a18471c7f2e
net/packet: fix packet drop as of virtio gso

When we use raw socket as the vhost backend, a packet from virito with
gso offloading information, cannot be sent out in later validaton at
xmit path, as we did not set correct skb->protocol which is further used
for looking up the gso function.

To fix this, we set this field according to virito hdr information.

Fixes: 43cb55de73bdca ("virtio_net: use common code for virtio_net_hdr and skb GSO conversion")
Signed-off-by: Jianfeng Tan <jianfeng.tan@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/virtio_net.h
net/packet/af_packet.c