Message ID | 20240511031404.30903-5-xuanzhuo@linux.alibaba.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 9719f039d3287e70e6f0b6368dba5b112d152a8f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | virtio_net: rx enable premapped mode by default | expand |
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3ffcb2e2185f..f553c09e7ae4 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -739,7 +739,6 @@ static struct sk_buff *page_to_skb(struct virtnet_info *vi, shinfo_size = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); - /* copy small packet so we can reuse these pages */ if (!NET_IP_ALIGN && len > GOOD_COPY_LEN && tailroom >= shinfo_size) { skb = virtnet_build_skb(buf, truesize, p - buf, len); if (unlikely(!skb))