Port representors hotplug

Test port representors hotplug add and remove

Test port representors hotplug add and remove. Test that traffic flow corresponds to the default representors flow rules.

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

  2. Get DPDK controller info

  3. Hotplug all virtual functions

  4. Remove the PF port

  5. Hotplug the PF port with representor device argument

  6. Hotplug the VF

  7. Find represetor port

  8. Start PF, representor and the first VF with shared mempool

  9. Init packet transmission between TST and IUT PF / VF / representor

  10. Set MAC addresses of corresponding ports in templates

  11. Check TST-IUT, VF-representor and representor-VF packet transmissions

  12. Remove representor port

Parameters:

tmpl

Packet template

remove_port

If TRUE, remove PF before hotplugging it with representors; otherwise don't do that