]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_net: replace VIRTIO_XDP_HEADROOM by XDP_PACKET_HEADROOM
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Mon, 8 Jul 2024 11:25:28 +0000 (19:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jul 2024 03:32:37 +0000 (20:32 -0700)
commit41d4a174201e62fc95562dc8e53097baf8568f24
tree870f6d63337b2b36a3b663e7236866bee58948c6
parente6c29506b2ec94e634819c03445ffe9eb350caed
virtio_net: replace VIRTIO_XDP_HEADROOM by XDP_PACKET_HEADROOM

virtio net has VIRTIO_XDP_HEADROOM that is equal to
XDP_PACKET_HEADROOM to calculate the headroom for xdp.

But here we should use the macro XDP_PACKET_HEADROOM from bpf.h to
calculate the headroom for xdp. So here we remove the
VIRTIO_XDP_HEADROOM, and use the XDP_PACKET_HEADROOM to replace it.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://patch.msgid.link/20240708112537.96291-2-xuanzhuo@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c