diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-10-21 08:49:59 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-10-25 07:09:03 +0000 |
commit | ac89ba8a39355a4a761508870ea0e08212ef7aee (patch) | |
tree | 67383d5d7827390a448ba4afc48a36302437bd53 /tests/vpp/perf/tcp | |
parent | 23b5bfe679371df276db4713f6089655b0e9bc56 (diff) |
Introduce pre-initialize driver layer
+ This will help unify driver base differences between TCs.
+ Decrease amount of logic needed for suite generator.
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I1e84ba361dc1e829f0612c58a61096e2633ce0c5
Diffstat (limited to 'tests/vpp/perf/tcp')
-rw-r--r-- | tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-cps.robot | 13 | ||||
-rw-r--r-- | tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-rps.robot | 13 |
2 files changed, 16 insertions, 10 deletions
diff --git a/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-cps.robot b/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-cps.robot index af480b6efd..bc626c0f54 100644 --- a/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-cps.robot +++ b/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-cps.robot @@ -19,7 +19,7 @@ | Resource | resources/libraries/robot/tcp/tcp_setup.robot | ... | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV -| ... | HTTP | TCP | TCP_CPS | NIC_Intel-X710 +| ... | HTTP | TCP | TCP_CPS | NIC_Intel-X710 | DRV_VFIO_PCI | ... | Suite Setup | Setup suite single link | wrk | Suite Teardown | Tear down suite @@ -40,6 +40,7 @@ *** Variables *** | @{plugins_to_enable}= | dpdk_plugin.so | http_static_plugin.so | ... | hs_apps_plugin.so +| ${crypto_type}= | ${None} | ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${traffic_profile}= | wrk-sf-2n-ethip4tcphttp-8u8c50con-cps @@ -49,8 +50,9 @@ | Local template | | [Arguments] | ${phy_cores} | ${rxq}=${None} | | ... -| | Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq} -| | Add PCI devices to all DUTs +| | Given Set Max Rate And Jumbo +| | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} +| | And Pre-initialize layer driver | ${nic_driver} | | :FOR | ${dut} | IN | @{duts} | | | Import Library | resources.libraries.python.VppConfigGenerator | | | ... | WITH NAME | ${dut} @@ -66,8 +68,9 @@ | | | Run keyword | ${dut}.Add session v4 halfopen table memory | 3g | | | Run keyword | ${dut}.Add session local endpoints table buckets | 2500000 | | | Run keyword | ${dut}.Add session local endpoints table memory | 3g -| | Apply startup configuration on all VPP DUTs -| | When Initialize layer driver | vfio-pci +| | And Apply startup configuration on all VPP DUTs +| | When Initialize layer driver | ${nic_driver} +| | And Initialize layer interface | | And Set up HTTP server with parameters on the VPP node | | ... | ${http_static_plugin} | 31000 | 64 | 4000m | | Then Measure connections per second | ${traffic_profile} diff --git a/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-rps.robot b/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-rps.robot index 2998535804..1fc7077093 100644 --- a/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-rps.robot +++ b/tests/vpp/perf/tcp/2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-rps.robot @@ -19,7 +19,7 @@ | Resource | resources/libraries/robot/tcp/tcp_setup.robot | ... | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV -| ... | HTTP | TCP | TCP_RPS | NIC_Intel-X710 +| ... | HTTP | TCP | TCP_RPS | NIC_Intel-X710 | DRV_VFIO_PCI | ... | Suite Setup | Setup suite single link | wrk | Suite Teardown | Tear down suite @@ -40,6 +40,7 @@ *** Variables *** | @{plugins_to_enable}= | dpdk_plugin.so | http_static_plugin.so | ... | hs_apps_plugin.so +| ${crypto_type}= | ${None} | ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${traffic_profile}= | wrk-sf-2n-ethip4tcphttp-8u8c50con-rps @@ -49,8 +50,9 @@ | Local template | | [Arguments] | ${phy_cores} | ${rxq}=${None} | | ... -| | Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq} -| | Add PCI devices to all DUTs +| | Given Set Max Rate And Jumbo +| | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} +| | And Pre-initialize layer driver | ${nic_driver} | | :FOR | ${dut} | IN | @{duts} | | | Import Library | resources.libraries.python.VppConfigGenerator | | | ... | WITH NAME | ${dut} @@ -66,8 +68,9 @@ | | | Run keyword | ${dut}.Add session v4 halfopen table memory | 3g | | | Run keyword | ${dut}.Add session local endpoints table buckets | 2500000 | | | Run keyword | ${dut}.Add session local endpoints table memory | 3g -| | Apply startup configuration on all VPP DUTs -| | When Initialize layer driver | vfio-pci +| | And Apply startup configuration on all VPP DUTs +| | When Initialize layer driver | ${nic_driver} +| | And Initialize layer interface | | And Set up HTTP server with parameters on the VPP node | | ... | ${http_static_plugin} | 500000 | 4 | 4000m | | Then Measure requests per second | ${traffic_profile} |