• John Fastabend's avatar
    virtio_net: add XDP_TX support · 56434a01
    John Fastabend authored
    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: default avatarJohn Fastabend <john.r.fastabend@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    56434a01
virtio_net.c 60.5 KB