aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/VppConfigGenerator.py19
-rw-r--r--resources/libraries/robot/shared/default.robot34
2 files changed, 53 insertions, 0 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py
index eb628de587..0331648269 100644
--- a/resources/libraries/python/VppConfigGenerator.py
+++ b/resources/libraries/python/VppConfigGenerator.py
@@ -184,6 +184,25 @@ class VppConfigGenerator(object):
path = ['dpdk', 'dev default', 'num-tx-queues']
self.add_config_item(self._nodeconfig, value, path)
+ def add_dpdk_dev_default_rxd(self, value):
+ """Add DPDK dev default rxd configuration.
+
+ :param value: Default number of rxds.
+ :type value: str
+ """
+ path = ['dpdk', 'dev default', 'num-rx-desc']
+ self.add_config_item(self._nodeconfig, value, path)
+
+ def add_dpdk_dev_default_txd(self, value):
+ """Add DPDK dev default txd configuration.
+
+ :param value: Default number of txds.
+ :type value: str
+ """
+ path = ['dpdk', 'dev default', 'num-tx-desc']
+ self.add_config_item(self._nodeconfig, value, path)
+
+
def add_dpdk_socketmem(self, value):
"""Add DPDK socket memory configuration.
diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot
index 96bdd5344e..3d1ce25732 100644
--- a/resources/libraries/robot/shared/default.robot
+++ b/resources/libraries/robot/shared/default.robot
@@ -220,6 +220,40 @@
| | :FOR | ${dut} | IN | @{duts}
| | | Run keyword | ${dut}.Add DPDK No Multi Seg
+| Add DPDK dev default RXD to all DUTs
+| | [Documentation] | Add DPDK num-rx-desc to VPP startup configuration to all
+| | ... | DUTs.
+| | ...
+| | ... | *Arguments:*
+| | ... | - rxd - Number of RX descriptors. Type: string
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Add DPDK dev default RXD to all DUTs \| ${rxd} \|
+| | ...
+| | [Arguments] | ${rxd}
+| | ...
+| | ${duts}= | Get Matches | ${nodes} | DUT*
+| | :FOR | ${dut} | IN | @{duts}
+| | | Run keyword | ${dut}.Add DPDK Dev Default RXD | ${rxd}
+
+| Add DPDK dev default TXD to all DUTs
+| | [Documentation] | Add DPDK num-tx-desc to VPP startup configuration to all
+| | ... | DUTs.
+| | ...
+| | ... | *Arguments:*
+| | ... | - txd - Number of TX descriptors. Type: string
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Add DPDK dev default TXD to all DUTs \| ${txd} \|
+| | ...
+| | [Arguments] | ${txd}
+| | ...
+| | ${duts}= | Get Matches | ${nodes} | DUT*
+| | :FOR | ${dut} | IN | @{duts}
+| | | Run keyword | ${dut}.Add DPDK Dev Default TXD | ${txd}
+
| Add SNAT to all DUTs
| | [Documentation] | Add SNAT configuration to all DUTs.
| | ...