]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7cb0cd8923a6b93f3290c395d782fb4ae24b58c
tree4840e73bbe01edcb26f383d86d761ad2abd05278
parent801d541a7e19da5a0189e436b85cc8b549944b7a
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