Re: [bpf-next PATCH] samples/bpf: xdp_redirect_cpu handle parsing of double VLAN tagged packets

2018-07-13 Thread Daniel Borkmann
On 07/13/2018 04:35 PM, Jesper Dangaard Brouer wrote: > People noticed that the code match on IEEE 802.1ad (ETH_P_8021AD) ethertype, > and this implies Q-in-Q or double tagged VLANs. Thus, we better parse > the next VLAN header too. It is even marked as a TODO. > > This is relevant for real

[bpf-next PATCH] samples/bpf: xdp_redirect_cpu handle parsing of double VLAN tagged packets

2018-07-13 Thread Jesper Dangaard Brouer
People noticed that the code match on IEEE 802.1ad (ETH_P_8021AD) ethertype, and this implies Q-in-Q or double tagged VLANs. Thus, we better parse the next VLAN header too. It is even marked as a TODO. This is relevant for real world use-cases, as XDP cpumap redirect can be used when the NIC