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. Since DST addresses are alien, enable promiscuous mode on IUT

  6. Ensure that interface is UP on Tester side

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

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

  9. Prepare DPDK representation of the TUNNEL rule

  10. Validate and create the TUNNEL rule

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

  12. Validate tunnel restore info operation for the packet

  13. Verify the packet data

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

  15. Prepare DPDK representation of the SWITCH rule

  16. Validate and create the SWITCH rule

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

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

  19. 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