Simulate HW offload
Make sure that offloading traffic to a virtual function works with RTE flow API
Negotiate the NIC's ability to deliver tunnel IDs to the PMD
Bind DPDK driver on a VF
Create a big enough mempool for PF, VF and representor ports
Hotplug the representor of the VF
Hotplug VF
Make flow rule pattern and template
Start PF, VF and representor ports
Since DST addresses are alien, enable promiscuous mode on IUT
Check full traffic path (IUT - representor - TST) without flow rule
Make flow rule attributes with transfer and ingress or egress depending on traffic direction
Make flow rule action VF (when receiving on IUT) or PHY (when receiving on TST)
Validate and create the flow rules
Check the traffic from VF to TST
Check the traffic at least reached PF or representor
Destroy the flow rule and check the full traffic path again
Parameters:
encap_tunnel_type |
Encapsulation tunnel type |
jump_flow_rule_pattern |
Flow Rule pattern with jump action |
decap_flow_rule_pattern |
Flow Rule pattern in the group to which traffic from the jump_flow_rule_pattern is directed. Contains decap action |
nb_pkts |
Number of offloaded packets to send |