From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (unknown [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id B22C18D3D for ; Tue, 27 Oct 2015 07:08:13 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from root@r-aa-dragon7.rdmz.labs.mlnx) with ESMTPS (AES256-SHA encrypted); 27 Oct 2015 08:08:00 +0200 Received: from r-aa-dragon7.rdmz.labs.mlnx (r-aa-dragon7.rdmz.labs.mlnx [10.224.14.90]) by filer01.rdmz.labs.mlnx (8.13.8/8.13.8) with ESMTP id t9R67xMo010151; Tue, 27 Oct 2015 08:07:59 +0200 Received: from r-aa-dragon7.rdmz.labs.mlnx (localhost [127.0.0.1]) by r-aa-dragon7.rdmz.labs.mlnx (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t9R680jt031887; Tue, 27 Oct 2015 08:08:00 +0200 Received: (from root@localhost) by r-aa-dragon7.rdmz.labs.mlnx (8.14.4/8.14.4/Submit) id t9R680XY031886; Tue, 27 Oct 2015 08:08:00 +0200 From: Raslan Darawsheh To: dts@dpdk.org Date: Tue, 27 Oct 2015 08:07:53 +0200 Message-Id: <1445926076-31279-4-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445926076-31279-1-git-send-email-rasland@mellanox.com> References: <1445926076-31279-1-git-send-email-rasland@mellanox.com> Cc: rdarawsheh@asaltech.com Subject: [dts] [PATCH 4/6] framewark:project_dpdk : Enable MLX4 and MLX5 PMD's before compiling and disable binding X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 06:08:14 -0000 From: Raslsn Darawsheh Signed-off-by: Raslsn Darawsheh --- framework/project_dpdk.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index e0009d3..a51a2a4 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -160,6 +160,11 @@ class DPDKdut(Dut): """ # clean all self.send_expect("rm -rf " + target, "#") + # if Configured device is a Mellanox then need to enable MLX4 PMD + if self.isMellanox and self.mellanoxCardType == "cx3" : + self.send_expect("sed -i '/CONFIG_RTE_LIBRTE_MLX4_PMD=n/c\CONFIG_RTE_LIBRTE_MLX4_PMD=y' config/common_linuxapp" ,"#") + elif self.isMellanox and self.mellanoxCardType == "cx4" : + self.send_expect("sed -i '/CONFIG_RTE_LIBRTE_MLX5_PMD=n/c\CONFIG_RTE_LIBRTE_MLX5_PMD=y' config/common_linuxapp","#") # compile out = self.send_expect("make -j install T=%s %s" % (target, extra_options), "# ", 120) @@ -269,7 +274,10 @@ class DPDKdut(Dut): binding_list += '%s ' % (port_info['pci']) current_nic += 1 - self.send_expect('tools/dpdk_nic_bind.py %s' % binding_list, '# ') + if self.isMellanox: + pass + else: + self.send_expect('tools/dpdk_nic_bind.py %s' % binding_list, '# ') def unbind_interfaces_linux(self, nics_to_bind=None): """ @@ -284,7 +292,10 @@ class DPDKdut(Dut): binding_list += '%s ' % (port_info['pci']) current_nic += 1 - self.send_expect('tools/dpdk_nic_bind.py %s' % binding_list, '# ', 30) + if self.isMellanox: + pass + else: + self.send_expect('tools/dpdk_nic_bind.py %s' % binding_list, '# ', 30) def build_dpdk_apps(self, folder, extra_options=''): """ -- 1.8.3.1