VLAN strip offloadΒΆ

Check VLAN strip offload

Check the successful VLAN header stripping

  1. Initialize EAL

  2. Check VLAN strip capability

  3. Enable VLAN strip offload if vlan_strip is TRUE

  4. Check QinQ strip capability if qinq_strip is TRUE

  5. Enable QinQ strip offload if qinq_strip is TRUE

  6. Configure and start the Ethernet device

  7. Configure UDP tunnel port number if need be

  8. Enable promiscuous mode if supported

  9. Ensure that interface is UP on Tester side

  10. Transmit a packet from tst_if towards iut_port

  11. Transform the pattern due to expected offloads

  12. Receive packets on iut_port and match the pattern

  13. Obtain mbuf flags and check them

Parameters:

vlan_strip

Test with VLAN strip offload enabled

qinq_strip

Test with QinQ strip offload enabled

tmpl

Traffic template