From: Xuan Zhuo Date: Sat, 11 May 2024 03:14:04 +0000 (+0800) Subject: virtio_net: remove the misleading comment X-Git-Tag: v6.10-rc1~153^2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9719f039d3287e70e6f0b6368dba5b112d152a8f;p=thirdparty%2Flinux.git virtio_net: remove the misleading comment We call the build_skb() actually without copying data. The comment is misleading. So remove it. Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Link: https://lore.kernel.org/r/20240511031404.30903-5-xuanzhuo@linux.alibaba.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 2f8f0de21dc6d..19a9b50646c75 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -743,7 +743,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))