From f444fad9054907b52773c5ce93623a18fba0f2a3 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Mon, 6 Mar 2017 02:09:11 +0200 Subject: dpdk_setup_ports: fix Mellanox Change-Id: Ibdc0089c323f94221130fa0c80e5fc3d12ffab10 Signed-off-by: Yaroslav Brustinov --- scripts/dpdk_setup_ports.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py index 8e5a23be..de73fea1 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -630,7 +630,7 @@ Other network devices to_bind_list.append(key) if to_bind_list: - if Mellanox_cnt > 0: + if Mellanox_cnt: ret = self.do_bind_all('mlx5_core', to_bind_list) if ret: raise DpdkSetup('Unable to bind interfaces to driver mlx5_core.') @@ -657,7 +657,8 @@ Other network devices ret = self.do_bind_all('igb_uio', to_bind_list) if ret: raise DpdkSetup('Unable to bind interfaces to driver igb_uio.') - + elif Mellanox_cnt: + return MLX_EXIT_CODE def do_return_to_linux(self): if not self.m_devices: -- cgit 1.2.3-korg