Simulate HW offload
Make sure that offloading traffic to a virtual function works with RTE flow API
Hotplug the representor of the VF
Bind kernel or DPDK driver on a VF
Hotplug VF
Add VF's kernel interface and bring it up
Create a big enough mempool for PF, VF and representor ports
Make flow rule pattern and template
Start PF, VF and representor ports
Check full traffic path (IUT - representor - TST) without flow rule
Make flow rule attributes with transfer and ingress or egress depending on traffic direction
Direct traffic to the VF (when receiving on IUT) or to the physical port (when receiving on TST)
Add flow rule action "count" for counter query
Validate and create the flow rule
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:
flow_rule_pattern |
Flow Rule pattern |
count |
Count offloaded packets if |
use_dpdk_driver |
Use DPDK driver on VF if |
nb_pkts |
Number of offloaded packets to send |
iut_client |
|