[dts] [PATCH v2 28/28] tests: pmd - Recompiling DPDK only if that is relevant
Angela Czubak
aczubak at caviumnetworks.com
Mon Apr 10 19:09:22 CEST 2017
Earlier, DPDK was rebuilt everytime to achieve the maximum performance
for FVL, even though FVL might not have been used.
Signed-off-by: Angela Czubak <aczubak at caviumnetworks.com>
---
tests/TestSuite_pmd.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py
index 2d5b485..82f1e30 100644
--- a/tests/TestSuite_pmd.py
+++ b/tests/TestSuite_pmd.py
@@ -69,8 +69,9 @@ class TestPmd(TestCase,IxiaPacketGenerator):
self.blacklist = ""
# Update config file and rebuild to get best perf on FVL
- self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/' ./config/common_base", "#", 20)
- self.dut.build_install_dpdk(self.target)
+ if "i40e" in self._get_nic_driver(self.dut.nic_type):
+ self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/' ./config/common_base", "#", 20)
+ self.dut.build_install_dpdk(self.target)
# Based on h/w type, choose how many ports to use
self.dut_ports = self.dut.get_ports()
--
2.7.4
More information about the dts
mailing list