aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorGravatar Xuan Zhuo <xuanzhuo@linux.alibaba.com> 2024-05-11 11:14:04 +0800
committerGravatar Jakub Kicinski <kuba@kernel.org> 2024-05-13 17:07:41 -0700
commit9719f039d3287e70e6f0b6368dba5b112d152a8f (patch)
tree7ecafb3eab128aca309e94fcc6187f744f531e94 /drivers/net
parentvirtio_net: rx remove premapped failover code (diff)
downloadlinux-9719f039d3287e70e6f0b6368dba5b112d152a8f.tar.gz
linux-9719f039d3287e70e6f0b6368dba5b112d152a8f.tar.bz2
linux-9719f039d3287e70e6f0b6368dba5b112d152a8f.zip
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 <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20240511031404.30903-5-xuanzhuo@linux.alibaba.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 2f8f0de21dc6..19a9b50646c7 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))