Simulate HW offload

Make sure that offloading traffic to a virtual function works with RTE flow API

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

  2. Bind DPDK driver on a VF

  3. Create a big enough mempool for PF, VF and representor ports

  4. Hotplug the representor of the VF

  5. Hotplug VF

  6. Make flow rule pattern and template

  7. Start PF, VF and representor ports

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

  9. Check full traffic path (IUT - representor - TST) without flow rule

  10. Make flow rule attributes with transfer and ingress or egress depending on traffic direction

  11. Make flow rule action VF (when receiving on IUT) or PHY (when receiving on TST)

  12. Validate and create the flow rules

  13. Check the traffic from VF to TST

  14. Check the traffic at least reached PF or representor

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