Lines Matching full:vlan
14 echo "Testing XDP + TC eBPF VLAN manipulations: $TESTNAME"
157 # NOTICE: XDP require VLAN header inside packet payload
158 # - Thus, disable VLAN offloading driver features
159 # - For veth REMEMBER TX side VLAN-offload
161 # Disable rx-vlan-offload (mostly needed on ns1)
165 # Disable tx-vlan-offload (mostly needed on ns2)
176 # In ns2/veth2 create VLAN device
177 export VLAN=4011
179 ip netns exec ns2 ip link add link $DEVNS2 name $DEVNS2.$VLAN type vlan id $VLAN
180 ip netns exec ns2 ip addr add ${IPADDR2}/24 dev $DEVNS2.$VLAN
182 ip netns exec ns2 ip link set $DEVNS2.$VLAN up
189 # because ns2 are using VLAN tags on the packets.
194 # Now we can use the test_xdp_vlan.c program to pop/push these VLAN tags
196 # In ns1: ingress use XDP to remove VLAN tags
200 # First test: Remove VLAN by setting VLAN ID 0, using "xdp_vlan_change"
204 # In ns1: egress use TC to add back VLAN tag 4011
216 # Second test: Replace xdp prog, that fully remove vlan header
219 # remove a VLAN header, because skb->protocol still contain VLAN