diff options
author | 2016-11-08 17:32:41 +0200 | |
---|---|---|
committer | 2016-11-11 12:22:50 +0200 | |
commit | 72df2b4179bafe01159c35026db8c1ec21dccffc (patch) | |
tree | d6e24d0cb2ab90c6fc5eb63b7d42221c7d707e0a /scripts | |
parent | 8e9aa6d85f8990dd521b1a65ca0315c0d66f09b9 (diff) |
WIP mlx5 don't check for conflict process - can't be done in case of mlx
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dpdk_setup_ports.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py index 14065f8a..2cfeec26 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -388,15 +388,17 @@ Other network devices self.do_bind_one (key,(Mellanox_cnt>0)) pass; - if if_list and map_driver.args.parent and dpdk_nic_bind.get_igb_uio_usage(): - pid = dpdk_nic_bind.get_pid_using_pci(if_list) - if pid: - cmdline = dpdk_nic_bind.read_pid_cmdline(pid) - print('Some or all of given interfaces are in use by following process:\npid: %s, cmd: %s' % (pid, cmdline)) - if not dpdk_nic_bind.confirm('Ignore and proceed (y/N):'): - sys.exit(1) - else: - print('WARNING: Some other program is using DPDK driver.\nIf it is TRex and you did not configure it for dual run, current command will fail.') + if (Mellanox_cnt==0): + # We are not in Mellanox case, we can do this check only in case of Intel (another process is running) + if if_list and map_driver.args.parent and (dpdk_nic_bind.get_igb_uio_usage()): + pid = dpdk_nic_bind.get_pid_using_pci(if_list) + if pid: + cmdline = dpdk_nic_bind.read_pid_cmdline(pid) + print('Some or all of given interfaces are in use by following process:\npid: %s, cmd: %s' % (pid, cmdline)) + if not dpdk_nic_bind.confirm('Ignore and proceed (y/N):'): + sys.exit(1) + else: + print('WARNING: Some other program is using DPDK driver.\nIf it is TRex and you did not configure it for dual run, current command will fail.') def do_return_to_linux(self): if not self.m_devices: |