]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
virtio-net: unbreak csumed packets for XDP_PASS
authorJason Wang <jasowang@redhat.com>
Fri, 23 Dec 2016 14:37:28 +0000 (22:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2016 18:48:54 +0000 (13:48 -0500)
commitb00f70b0dacb3d2e009afce860ebc90219072f5c
tree75329d0261d2d61d2e391cb4317588503c6f8256
parent1830f8935f3b173d229b86e9927b3b6d599aa1f6
virtio-net: unbreak csumed packets for XDP_PASS

We drop csumed packet when do XDP for packets. This breaks
XDP_PASS when GUEST_CSUM is supported. Fix this by allowing csum flag
to be set. With this patch, simple TCP works for XDP_PASS.

Cc: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c