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
Prepare state TEST_ETHDEV_INITIALIZED
Negotiate the NIC's ability to deliver tunnel IDs to the PMD
Prepare state TEST_ETHDEV_STARTED
Make a packet template from the SWITCH rule pattern NDN
Since DST addresses are alien, enable promiscuous mode on IUT
Ensure that interface is UP on Tester side
Send a packet from TST to IUT; watch it arrive unscathed
Make sure that the packet is not recognised as a tunnel one
Prepare DPDK representation of the TUNNEL rule
Validate and create the TUNNEL rule
Send a packet from TST to IUT; watch it arrive
Validate tunnel restore info operation for the packet
Verify the packet data
Make sure that the TUNNEL rule hit counter reads 1
Prepare DPDK representation of the SWITCH rule
Validate and create the SWITCH rule
Send a packet from TST to IUT; watch it arrive decapsulated
Make sure that the TUNNEL rule hit counter reads 2
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 |