test: compute max_translations_per_thread based on worker threads number
[csit.git] / tests / vpp / perf / ip4 / 2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot
index 3749553..e375a75 100644 (file)
 | ${dest_mask}= | ${14}
 # NAT settings
 | ${nat_mode}= | endpoint-dependent
-| ${max_translations_per_thread}= | 10485760
 | ${in_net}= | 172.16.0.0
 | ${in_mask}= | ${14}
 | ${out_net}= | 68.142.68.0
 | ${out_net_end}= | 68.142.68.255
 | ${out_mask}= | ${24}
+# Scale settings
+| ${n_hosts}= | ${262144}
+| ${n_ports}= | ${63}
+| ${n_sessions}= | ${${n_hosts} * ${n_ports}}
 # Traffic profile:
 | ${traffic_profile}= | trex-astf-ethip4udp-262144h
 | ${cps}= | ${16515072}
 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
 | | And Pre-initialize layer driver | ${nic_driver}
 | | And Add NAT to all DUTs | nat_mode=${nat_mode}
+| | ${max_translations_per_thread}= | Compute Max Translations Per Thread
+| | ... | ${n_sessions} | ${thr_count_int}
 | | And Add NAT max translations per thread to all DUTs
 | | ... | ${max_translations_per_thread}
 | | And Apply startup configuration on all VPP DUTs