virtio-net: support XDP_REDIRECT
authorJason Wang <jasowang@redhat.com>
Tue, 19 Sep 2017 09:42:43 +0000 (17:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 21:27:52 +0000 (14:27 -0700)
commit186b3c998c50fc241b51b905081c748455d16b4a
tree4840e73bbe01edcb26f383d86d761ad2abd05278
parent312403453532b209879aa7faeff296bd3dea78af
virtio-net: support XDP_REDIRECT

This patch tries to add XDP_REDIRECT for virtio-net. The changes are
not complex as we could use exist XDP_TX helpers for most of the
work. The rest is passing the XDP_TX to NAPI handler for implementing
batching.

Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net. [new file with mode: 0644]
drivers/net/virtio_net.c