Flow tunnel offload

Verify basic tunnel offload operability

LIMITATIONS:

  • switch_rule_ptrn_ndn must include all of tunnel_rule_ptrn_ndn

  • Only VXLAN is supported for now: use appropriate patterns

  • The test does not send mismatch packets

  • Byte counts are not verified

  1. Prepare state TEST_ETHDEV_INITIALIZED

  2. Negotiate the NIC's ability to deliver tunnel IDs to the PMD

  3. Prepare state TEST_ETHDEV_STARTED

  4. Make a packet template from the SWITCH rule pattern NDN

  5. Learn about protocol types present in the traffic template

  6. Fill IP addresses in the traffic template where needed

  7. Since DST addresses are alien, enable promiscuous mode on IUT

  8. Ensure that interface is UP on Tester side

  9. Send a packet from TST to IUT; watch it arrive unscathed

  10. Make sure that the packet is not recognised as a tunnel one

  11. Prepare DPDK representation of the TUNNEL rule

  12. Validate and create the TUNNEL rule

  13. Send a packet from TST to IUT; watch it arrive

  14. Validate tunnel restore info operation for the packet

  15. Verify the packet data

  16. Make sure that the TUNNEL rule hit counter reads 1

  17. Prepare DPDK representation of the SWITCH rule

  18. Validate and create the SWITCH rule

  19. Send a packet from TST to IUT; watch it arrive decapsulated

  20. Make sure that the TUNNEL rule hit counter reads 2

  21. Make sure that the SWITCH rule hit counter reads 1

Parameters:

tunnel_rule_ptrn_ndn

TUNNEL rule match pattern

switch_rule_ptrn_ndn

SWITCH rule match pattern

tunnel_rule_do_count

Add action COUNT to the TUNNEL rule

switch_rule_do_count

Add action COUNT to the SWITCH rule