diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-02 12:02:50 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-02 12:02:50 +0200 |
commit | 140dbd05cde4f67ad86a849b9882436e36114da2 (patch) | |
tree | 30d92bfd1b4fb5a3ae206c725d6fbdc4da0e3023 | |
parent | a5d77b9c82748549aa8b156920ba7d61fe8de89f (diff) |
dpdk_setup_ports: don't setpci on Mellanox Virtual functions
Change-Id: If7593bf742f559a9c7a4538db6be6ee7bc9050b9
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 a1fbc3d0..f5ca2eeb 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -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) |