Fix for dump interfaces @ Mellanox
authorYaroslav Brustinov <[email protected]>
Mon, 27 Feb 2017 18:42:59 +0000 (20:42 +0200)
committerYaroslav Brustinov <[email protected]>
Mon, 27 Feb 2017 18:42:59 +0000 (20:42 +0200)
Change-Id: Ieeadd3607e0b887156c12b7adc9862192c747d2f
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/dpdk_setup_ports.py

index 72d91de..a1fbc3d 100755 (executable)
@@ -488,7 +488,7 @@ Other network devices
             if_list = map_driver.parent_args.dump_interfaces
             if not if_list:
                 for dev in self.m_devices.values():
-                    if dev.get('Driver_str') in dpdk_nic_bind.dpdk_drivers:
+                    if dev.get('Driver_str') in dpdk_nic_bind.dpdk_drivers + dpdk_nic_bind.dpdk_and_kernel:
                         if_list.append(dev['Slot'])
 
         if_list = list(map(self.pci_name_to_full_name, if_list))
@@ -1052,6 +1052,9 @@ def main ():
     except DpdkSetup as e:
         print(e)
         exit(-1)
+    except Exception:
+        traceback.print_exc()
+        exit(-1)