virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] virtio-net: unbreak cusmed packet for small buffer XDP
@ 2017-06-28  1:54 Jason Wang
  2017-06-28  2:02 ` Michael S. Tsirkin
  0 siblings, 1 reply; 12+ messages in thread
From: Jason Wang @ 2017-06-28  1:54 UTC (permalink / raw)
  To: mst, virtualization, netdev, linux-kernel

We should allow csumed packet for small buffer, otherwise XDP_PASS
won't work correctly.

Fixes commit bb91accf2733 ("virtio-net: XDP support for small buffers")
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
The patch is needed for -stable.
---
 drivers/net/virtio_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 143d8a9..499fcc9 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -413,7 +413,7 @@ static struct sk_buff *receive_small(struct net_device *dev,
 		void *orig_data;
 		u32 act;
 
-		if (unlikely(hdr->hdr.gso_type || hdr->hdr.flags))
+		if (unlikely(hdr->hdr.gso_type))
 			goto err_xdp;
 
 		xdp.data_hard_start = buf + VIRTNET_RX_PAD + vi->hdr_len;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-07-06  0:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-28  1:54 [PATCH net] virtio-net: unbreak cusmed packet for small buffer XDP Jason Wang
2017-06-28  2:02 ` Michael S. Tsirkin
2017-06-28  2:14   ` Jason Wang
2017-06-28  2:17     ` Michael S. Tsirkin
2017-06-28  2:45       ` Jason Wang
2017-06-28  3:31         ` Michael S. Tsirkin
2017-06-28  3:40           ` Jason Wang
2017-06-28  4:01             ` Michael S. Tsirkin
2017-06-28 12:05               ` Jason Wang
2017-07-03 17:03                 ` Michael S. Tsirkin
     [not found]                 ` <20170703195752-mutt-send-email-mst@kernel.org>
2017-07-04 12:20                   ` Jason Wang
2017-07-06  0:07                     ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).