aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2017-06-28 22:14:51 +0200
committerPeter Mikus <pmikus@cisco.com>2017-07-04 04:19:06 +0000
commit036e5a85bab081bfa94b8c025c06aee0addb94cb (patch)
treea2e5ca1a274d5d08bcff3c8f15f1348c50ecb62f /resources
parent9e8d4d47cc09daa4bf44103d3f1e32206ff55556 (diff)
XL710 Configure rxd/txd 2048
Configure RX-desc and TX-desc to 2048 for FVL XL710 cards. Change-Id: I1876f332bdc6100bf24f2b2317de33c0d1a4c9bf Signed-off-by: Peter Mikus <pmikus@cisco.com>
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.
| | ...