[dts] [PATCH 2/3] framework/project_dpdk.py enabling MLX5 PMD for Mellanox NIC
Raslan Darawsheh
rasland at mellanox.com
Thu Jan 21 13:17:59 CET 2016
From: Raslan Darawsheh <rdarawsheh at asaltech.com>
Signed-off-by: Raslan Darawsheh <rdarawsheh at asaltech.com>
---
framework/project_dpdk.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 597982f..4a5e222 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -70,6 +70,12 @@ class DPDKdut(Dut):
self.send_expect("export RTE_SDK=`pwd`", "#")
self.set_rxtx_mode()
+
+ #Enable MLNX driver before installing dpdk
+ if dts.drivername == DRIVERS['ConnectX4']:
+ self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_MLX5_PMD=n/"
+ + "CONFIG_RTE_LIBRTE_MLX5_PMD=y/' config/common_linuxapp" , "# ", 30)
+
if not self.skip_setup:
self.build_install_dpdk(target)
--
1.9.1
More information about the dts
mailing list