diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-06 02:09:11 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-06 02:09:11 +0200 |
commit | f444fad9054907b52773c5ce93623a18fba0f2a3 (patch) | |
tree | 863882ec77000656a77ed20846417b77c595dd36 | |
parent | c118763130d9901bf5271d2a8fc0bfac4be88b95 (diff) |
dpdk_setup_ports: fix Mellanox
Change-Id: Ibdc0089c323f94221130fa0c80e5fc3d12ffab10
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rwxr-xr-x | scripts/dpdk_setup_ports.py | 5 |
1 files 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: |