From 036e5a85bab081bfa94b8c025c06aee0addb94cb Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Wed, 28 Jun 2017 22:14:51 +0200 Subject: 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 --- resources/libraries/python/VppConfigGenerator.py | 19 +++++++++++++ resources/libraries/robot/shared/default.robot | 34 ++++++++++++++++++++++++ 2 files changed, 53 insertions(+) (limited to 'resources/libraries') 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. | | ... -- cgit 1.2.3-korg