XDP: The VLAN offload problem


Jesper Dangaard Brouer
 

Many NICs today does VLAN acceleration by delivering the VLAN TCI in
the RX descriptor, and stripping/starting the packet-data after the
VLAN header.

For XDP this special case handling for VLANs is annoying, and it
would also be annoying if we need to reserve a meta-data field for
this.

On the IOvisor call (June 1st 2016) is was argued that the VLAN header
should be part of normal packet. 1) either by disabling VLAN accel on
the NIC, or 2) by reconstructing the VLAN header (if needed) as
XDP/eBPF prog could be passed the VLAN TCI info as an argument.

--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
Author of http://www.iptv-analyzer.org
LinkedIn: http://www.linkedin.com/in/brouer

Join iovisor-dev@lists.iovisor.org to automatically receive all group messages.