virtio_net: xsk: tx: support xmit xsk buffer
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Tue, 12 Nov 2024 01:29:26 +0000 (09:29 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Nov 2024 02:46:56 +0000 (18:46 -0800)
commit89f86675cb0348c9c7acf77263c2359e772a6768
tree0b54754c023ac983b4d01153d7a54957777cd5ad
parent1df5116a41a823f6c6755b1d04062f56ba4ea1e5
virtio_net: xsk: tx: support xmit xsk buffer

The driver's tx napi is very important for XSK. It is responsible for
obtaining data from the XSK queue and sending it out.

At the beginning, we need to trigger tx napi.

virtnet_free_old_xmit distinguishes three type ptr(skb, xdp frame, xsk
buffer) by the last bits of the pointer.

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