VLAN filter offload

Check VLAN filter offload

Check the correctness of VLAN filtering

  • Transmit and sniff a match packet from tst_if

  • Receive a packet on iut_port

  1. Check received packets

  2. Initialize EAL

  3. Check VLAN filter capability

  4. Prepare tmpl for test

  5. Start the Ethernet device with VLAN filtering offload enabled

  6. Ensure that interface is UP on Tester side

  7. Send VLAN tagged packets just after device start when all VLANs are filtered out

  8. Enable tested VLANs Rx

  9. Send VLAN tagged packets and expect it to be received now

  10. Disable tested VLANs Rx again

  11. Send VLAN tagged packets and expect it to be filtered out

Parameters:

tmpl

Traffic template

nb_vlan_filters

The number of VLAN IDs for filtering