]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: add XDP_TX support
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 15 Dec 2016 20:14:13 +0000 (12:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 16:48:55 +0000 (11:48 -0500)
commitdcb7757e51a7c382b9718c746f1cd36f3de402cf
tree40bf04fc98be2a137ded0b625bbce9694448b304
parentad6024f4834d745777e8f418c1ace737e4c8a3bf
virtio_net: add XDP_TX support

This adds support for the XDP_TX action to virtio_net. When an XDP
program is run and returns the XDP_TX action the virtio_net XDP
implementation will transmit the packet on a TX queue that aligns
with the current CPU that the XDP packet was processed on.

Before sending the packet the header is zeroed.  Also XDP is expected
to handle checksum correctly so no checksum offload  support is
provided.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c