Skip to content

Commit 9719f03

Browse files
fengidrikuba-moo
authored andcommitted
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>
1 parent defd28a commit 9719f03

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/net/virtio_net.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ static struct sk_buff *page_to_skb(struct virtnet_info *vi,
743743

744744
shinfo_size = SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
745745

746-
/* copy small packet so we can reuse these pages */
747746
if (!NET_IP_ALIGN && len > GOOD_COPY_LEN && tailroom >= shinfo_size) {
748747
skb = virtnet_build_skb(buf, truesize, p - buf, len);
749748
if (unlikely(!skb))

0 commit comments

Comments
 (0)