Check VLAN filter offload

Check VLAN filter offload functionality.

  1. Set rx-vlan-filter feature on the IUT interface according to value of vlan_filter_on test parameter.

  2. Ensure that promiscuous mode is disabled on the IUT interface.

  3. Allocate a pair of IP addresses to be used in VLAN.

  4. Create a CSAP on IUT to capture UDP packets sent to iut_addr2.

  5. Create a CSAP on Tester to send packets to iut_addr2.

  6. Send untagged packet when no VLANs are added yet.

  7. Send a packet to vlan_a_id when no VLANs are added yet.

  8. Add VLANs vlan_a_id and vlan_b_id to the iut_if.

  9. Send untagged packet when VLANs are added.

  10. Send a packet to added VLAN vlan_a_id.

  11. Send a packet to added VLAN vlan_b_id.

  12. Delete VLAN vlan_a_id from the iut_if.

  13. Send a packet to still added VLAN vlan_b_id.

  14. Send a packet to just removed VLAN vlan_a_id.

  15. Delete the VLAN vlan_b_id from the iut_if.

  16. Send a packet to VLAN vlan_b_id when all VLANs are removed.

  17. Send untagged packet when all VLANs are removed.

Andrew Rybchenko andrew.rybchenko@oktetlabs.ru

Parameters:

env

Testing environment:

vlan_filter_on

If true, enable VLAN filter offload on IUT interface, otherwise disable it.