]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:53:22 +0000 (19:53 -0600)
commit50461ee81970c7b6facb995989e7de8fb5c99d70
tree146e42f405f5621921d4be4345d000cfd35d8f7d
parentc996eb2278a8495d2f518b49f08bdd40761931c2
net/packet: fix packet drop as of virtio gso

BugLink: https://bugs.launchpad.net/bugs/1836426
[ Upstream commit 9d2f67e43b73e8af7438be219b66a5de0cfa8bd9 ]

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: e858fae2b0b8f4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/linux/virtio_net.h
net/packet/af_packet.c