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 <[email protected]> Acked-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent defd28a commit 9719f03

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)