virtio-net: support multi-buffer xdp
authorHeng Qi <hengqi@linux.alibaba.com>
Sat, 14 Jan 2023 08:22:29 +0000 (16:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2023 11:15:48 +0000 (11:15 +0000)
commitfab89bafa95b6f333b0e2dca0ae07a0b3600e954
tree05eabd14fec39020b4898910a0b47e23c6c0440c
parent18117a842ab029df139f776bf31eebff6d0e0730
virtio-net: support multi-buffer xdp

Driver can pass the skb to stack by build_skb_from_xdp_buff().

Driver forwards multi-buffer packets using the send queue
when XDP_TX and XDP_REDIRECT, and clears the reference of multi
pages when XDP_DROP.

Signed-off-by: Heng Qi <hengqi@linux.alibaba.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c