5. Performance Tests

5.1. 10ge2p1vic1227-eth-l2bdbasemaclrn-ndrpdrdisc suite

5.1.1. tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


framesize=${64}  min_rate=${100000}  wt=1  rxq=1

5.1.2. tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


framesize=${64}  min_rate=${100000}  wt=1  rxq=1

5.1.3. tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${1518}  min_rate=${10000}  wt=1  rxq=1

5.1.4. tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${1518}  min_rate=${10000}  wt=1  rxq=1

5.1.5. tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${9000}  min_rate=${10000}  wt=1  rxq=1

5.1.6. tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${9000}  min_rate=${10000}  wt=1  rxq=1

5.1.7. tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


framesize=${64}  min_rate=${100000}  wt=2  rxq=1

5.1.8. tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


framesize=${64}  min_rate=${100000}  wt=2  rxq=1

5.1.9. tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${1518}  min_rate=${10000}  wt=2  rxq=1

5.1.10. tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${1518}  min_rate=${10000}  wt=2  rxq=1

5.1.11. tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${9000}  min_rate=${10000}  wt=2  rxq=1

5.1.12. tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${9000}  min_rate=${10000}  wt=2  rxq=1

5.1.13. tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


framesize=${64}  min_rate=${100000}  wt=4  rxq=2

5.1.14. tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


framesize=${64}  min_rate=${100000}  wt=4  rxq=2

5.1.15. tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${1518}  min_rate=${10000}  wt=4  rxq=2

5.1.16. tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${1518}  min_rate=${10000}  wt=4  rxq=2

5.1.17. tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${9000}  min_rate=${10000}  wt=4  rxq=2

5.1.18. tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${9000}  min_rate=${10000}  wt=4  rxq=2

5.2. 10ge2p1x520-dot1ad-l2xcbase-ndrchk suite

5.2.1. tc01-64B-1t1c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 4.0mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  4.0mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.2. tc02-1514B-1t1c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte frames using single trial throughput test at 2x 810635pps.


${framesize}=  Set Variable  ${1514}
${rate}=  Set Variable  810635pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.3. tc03-9000B-1t1c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138458pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138458pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.4. tc04-64B-2t2c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 8.5mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  8.5mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.5. tc05-1514B-2t2c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte frames using single trial throughput test at 2x 810635pps.


${framesize}=  Set Variable  ${1514}
${rate}=  Set Variable  810635pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.6. tc06-9000B-2t2c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138458pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138458pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.7. tc07-64B-4t4c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 8.6mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  8.6mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.8. tc08-1514B-4t4c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte frames using single trial throughput test at 2x 810635pps.


${framesize}=  Set Variable  ${1514}
${rate}=  Set Variable  810635pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.2.9. tc09-9000B-4t4c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138458pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138458pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.3. 10ge2p1x520-dot1ad-l2xcbase-ndrpdrdisc suite

5.3.1. tc01-64B-1t1c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.2. tc02-64B-1t1c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.3. tc03-1514B-1t1c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.4. tc04-1514B-1t1c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.5. tc05-9000B-1t1c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.6. tc06-9000B-1t1c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.7. tc07-64B-2t2c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.8. tc08-64B-2t2c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.9. tc09-1514B-2t2c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.10. tc10-1514B-2t2c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.11. tc11-9000B-2t2c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.12. tc12-9000B-2t2c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.13. tc13-64B-4t4c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.14. tc14-64B-4t4c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.15. tc15-1514B-4t4c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.16. tc16-1514B-4t4c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.3.17. tc17-9000B-4t4c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.3.18. tc18-9000B-4t4c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4. 10ge2p1x520-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrpdrdisc suite

5.4.1. tc01-64B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.2. tc02-64B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.3. tc03-1518B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.4. tc04-1518B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.5. tc05-IMIX-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.6. tc06-IMIX-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.7. tc07-64B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.8. tc08-64B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.9. tc09-1518B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.10. tc10-1518B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.11. tc11-IMIX-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.12. tc12-IMIX-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.13. tc13-64B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.14. tc14-64B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.15. tc15-1518B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.16. tc16-1518B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.4.17. tc17-IMIX-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.4.18. tc18-IMIX-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5. 10ge2p1x520-dot1q-l2xcbase-eth-2vhost-1vm-ndrpdrdisc suite

5.5.1. tc01-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.2. tc02-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.3. tc03-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.4. tc04-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.5. tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.6. tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.7. tc07-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.8. tc08-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.9. tc09-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.10. tc10-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.11. tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.12. tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.13. tc13-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.14. tc14-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.15. tc15-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.16. tc16-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.5.17. tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.5.18. tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.6. 10ge2p1x520-dot1q-l2xcbase-ndrchk suite

5.6.1. tc01-64B-1t1c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 4.0mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  4.0mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.2. tc02-1518B-1t1c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 720000pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  720000pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.3. tc03-9000B-1t1c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 120000pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  120000pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.4. tc04-64B-2t2c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 8.7mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  8.7mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.5. tc05-1518B-2t2c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 720000pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  720000pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.6. tc06-9000B-2t2c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 120000pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  120000pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.7. tc07-64B-4t4c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 10.3mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  10.3mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.8. tc08-1518B-4t4c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 720000pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  720000pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.6.9. tc09-9000B-4t4c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 120000pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  120000pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.7. 10ge2p1x520-dot1q-l2xcbase-ndrpdrdisc suite

5.7.1. tc01-64B-1t1c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.2. tc02-64B-1t1c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.3. tc03-1518B-1t1c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.4. tc04-1518B-1t1c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.5. tc05-9000B-1t1c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.6. tc06-9000B-1t1c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.7. tc07-64B-2t2c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.8. tc08-64B-2t2c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.9. tc09-1518B-2t2c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.10. tc10-1518B-2t2c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.11. tc11-9000B-2t2c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.12. tc12-9000B-2t2c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.13. tc13-64B-4t4c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.14. tc14-64B-4t4c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.15. tc15-1518B-4t4c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.16. tc16-1518B-4t4c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.7.17. tc17-9000B-4t4c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.7.18. tc18-9000B-4t4c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8. 10ge2p1x520-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrpdrdisc suite

5.8.1. tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.2. tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.3. tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.4. tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.5. tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.6. tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.7. tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.8. tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.9. tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.10. tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.11. tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.12. tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.13. tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.14. tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.15. tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.16. tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.8.17. tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.8.18. tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9. 10ge2p1x520-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrpdrdisc suite

5.9.1. tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.2. tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.3. tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.4. tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.5. tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.6. tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.7. tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.8. tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.9. tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.10. tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.11. tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.12. tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.13. tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.14. tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.15. tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.16. tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.9.17. tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.9.18. tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.10. 10ge2p1x520-eth-l2bdbasemaclrn-ndrchk suite

5.10.1. tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 4.9mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  4.9mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.2. tc02-1518B-1t1c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  812743pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.3. tc03-9000B-1t1c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138580pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.4. tc04-64B-2t2c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 10.4mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  10.4mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.5. tc05-1518B-2t2c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  812743pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.6. tc06-9000B-2t2c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138580pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.7. tc07-64B-4t4c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 10.4mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  10.4mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.8. tc08-1518B-4t4c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  812743pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.10.9. tc09-9000B-4t4c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138580pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-bridge

5.11. 10ge2p1x520-eth-l2bdbasemaclrn-ndrpdrdisc suite

5.11.1. tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


framesize=${64}  min_rate=${100000}  wt=1  rxq=1

5.11.2. tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


framesize=${64}  min_rate=${100000}  wt=1  rxq=1

5.11.3. tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${1518}  min_rate=${10000}  wt=1  rxq=1

5.11.4. tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${1518}  min_rate=${10000}  wt=1  rxq=1

5.11.5. tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${9000}  min_rate=${10000}  wt=1  rxq=1

5.11.6. tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${9000}  min_rate=${10000}  wt=1  rxq=1

5.11.7. tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


framesize=${64}  min_rate=${100000}  wt=2  rxq=1

5.11.8. tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


framesize=${64}  min_rate=${100000}  wt=2  rxq=1

5.11.9. tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${1518}  min_rate=${10000}  wt=2  rxq=1

5.11.10. tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${1518}  min_rate=${10000}  wt=2  rxq=1

5.11.11. tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${9000}  min_rate=${10000}  wt=2  rxq=1

5.11.12. tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${9000}  min_rate=${10000}  wt=2  rxq=1

5.11.13. tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


framesize=${64}  min_rate=${100000}  wt=4  rxq=2

5.11.14. tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


framesize=${64}  min_rate=${100000}  wt=4  rxq=2

5.11.15. tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${1518}  min_rate=${10000}  wt=4  rxq=2

5.11.16. tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${1518}  min_rate=${10000}  wt=4  rxq=2

5.11.17. tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


framesize=${9000}  min_rate=${10000}  wt=4  rxq=2

5.11.18. tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


framesize=${9000}  min_rate=${10000}  wt=4  rxq=2

5.11.19. L2 Bridge Domain NDR Binary Search


Set Test Variable  ${framesize}
Set Test Variable  ${min_rate}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
Add PCI devices to DUTs from 3-node single link topology
${get_framesize}=  Get Frame Size  ${framesize}
Run Keyword If  ${get_framesize} < ${1522}  Add No Multi Seg to all DUTs
Apply startup configuration on all VPP DUTs
L2 bridge domain initialized in a 3-node circular topology
Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

5.11.20. L2 Bridge Domain PDR Binary Search


Set Test Variable  ${framesize}
Set Test Variable  ${min_rate}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
Add PCI devices to DUTs from 3-node single link topology
${get_framesize}=  Get Frame Size  ${framesize}
Run Keyword If  ${get_framesize} < ${1522}  Add No Multi Seg to all DUTs
Apply startup configuration on all VPP DUTs
L2 bridge domain initialized in a 3-node circular topology
Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12. 10ge2p1x520-eth-l2xcbase-eth-2vhost-1vm-ndrpdrdisc suite

5.12.1. tc01-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.2. tc02-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.3. tc03-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.4. tc04-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.5. tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.6. tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.7. tc07-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.8. tc08-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.9. tc09-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.10. tc10-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.11. tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.12. tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.13. tc13-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.14. tc14-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.15. tc15-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.16. tc16-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.12.17. tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.12.18. tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13. 10ge2p1x520-eth-l2xcbase-eth-4vhost-2vm-ndrpdrdisc suite

5.13.1. tc01-64B-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.2. tc02-64B-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.3. tc03-1518B-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.4. tc04-1518B-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.5. tc05-IMIX-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.6. tc06-IMIX-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.7. tc07-64B-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.8. tc08-64B-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.9. tc09-1518B-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.10. tc10-1518B-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.11. tc11-IMIX-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.12. tc12-IMIX-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.13. tc13-64B-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.14. tc14-64B-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.15. tc15-1518B-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.16. tc16-1518B-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.13.17. tc17-IMIX-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.13.18. tc18-IMIX-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Set Test Variable  ${dut1_vm_refs}
Set Test Variable  ${dut2_vm_refs}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
  And '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${perf_pdr_loss_acceptance}  ${perf_pdr_loss_acceptance_type}

5.14. 10ge2p1x520-eth-l2xcbase-ndrchk suite

5.14.1. tc01-64B-1t1c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 5.9mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  5.9mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.2. tc02-1518B-1t1c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  812743pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.3. tc03-9000B-1t1c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138580pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.4. tc04-64B-2t2c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 10.4mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  10.4mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.5. tc05-1518B-2t2c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  812743pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.6. tc06-9000B-2t2c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138580pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.7. tc07-64B-4t4c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 10.4mpps.


${framesize}=  Set Variable  ${64}
${rate}=  Set Variable  10.4mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.8. tc08-1518B-4t4c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  ${1518}
${rate}=  Set Variable  812743pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.14.9. tc09-9000B-4t4c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  ${9000}
${rate}=  Set Variable  138580pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${perf_trial_duration}  ${rate}  ${framesize}  3-node-xconnect

5.15. 10ge2p1x520-eth-l2xcbase-ndrpdrdisc suite

5.15.1. tc01-64B-1t1c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

5.15.2. tc02-64B-1t1c-eth-l2xcbase-pdrdisc