]> git.karo-electronics.de Git - linux-beck.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)
commit56434a01b12e99eb60908f5f2b27b90726d0a183
tree40bf04fc98be2a137ded0b625bbce9694448b304
parent672aafd5d88a951f394334802b938b502010d9eb
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