Skip to content

Commit

Permalink
virtio_net: remove the misleading comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xuan Zhuo authored and Jakub Kicinski committed May 14, 2024
1 parent defd28a commit 9719f03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9719f03

Please sign in to comment.