diff options
| author | Xuan Zhuo <[email protected]> | 2024-05-11 03:14:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-14 00:07:41 +0000 |
| commit | 9719f039d3287e70e6f0b6368dba5b112d152a8f (patch) | |
| tree | 7ecafb3eab128aca309e94fcc6187f744f531e94 /drivers/net/virtio_net.c | |
| parent | virtio_net: rx remove premapped failover code (diff) | |
| download | kernel-9719f039d3287e70e6f0b6368dba5b112d152a8f.tar.gz kernel-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 <[email protected]>
Acked-by: Jason Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/virtio_net.c')
| -rw-r--r-- | drivers/net/virtio_net.c | 1 |
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)) |
