dpdk_setup_ports: don't setpci on Mellanox Virtual functions
authorYaroslav Brustinov <[email protected]>
Thu, 2 Mar 2017 10:02:50 +0000 (12:02 +0200)
committerYaroslav Brustinov <[email protected]>
Thu, 2 Mar 2017 10:02:50 +0000 (12:02 +0200)
Change-Id: If7593bf742f559a9c7a4538db6be6ee7bc9050b9
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/dpdk_setup_ports.py

index a1fbc3d..f5ca2ee 100755 (executable)
@@ -525,8 +525,9 @@ Other network devices
                 self.check_ofed_version()
 
             for key in if_list:
-                pci_id=self.m_devices[key]['Slot_str']
-                self.tune_mlx5_device (pci_id)
+                if 'Virtual' not in self.m_devices[key]['Device_str']:
+                    pci_id = self.m_devices[key]['Slot_str']
+                    self.tune_mlx5_device(pci_id)
                 if 'Interface' in self.m_devices[key]:
                     dev_id=self.m_devices[key]['Interface']
                     self.disable_flow_control_mlx5_device (dev_id)