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. For each iteration (vf_id = 0; vf_id < n_vfs; vf_id++):

    • If remove_port :

      • Remove the PF port

    • Hotplug the PF port with representor device argument

    • Hotplug the VF

    • Find represetor port

    • Start PF, representor and the first VF with shared mempool

    • Init packet transmission between TST and IUT PF / VF / representor

    • Set MAC addresses of corresponding ports in templates

    • Check TST-IUT, VF-representor and representor-VF packet transmissions

    • Remove representor port

Igor Romanov Igor.Romanov@oktetlabs.ru

Parameters:

tmpl

Packet template

remove_port

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