]> 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)
commit8ab6466f6702a07b91a0ff4da4496421a9cc5785
tree40bf04fc98be2a137ded0b625bbce9694448b304
parenta293c98b76cbc5cad71c09cb25c14bcbb6edb1b1
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