net/mlx5/linux: fix probing adjustment depending on DevX

Bonding adjustment is done only when DEVX_PORT is supported in the
rdma-core.

Some bonding condition was done even when DEVX_PORT is not supported.

Remove it.

Fixes: 2eb4d0107acc ("net/mlx5: refactor PCI probing on Linux")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
This commit is contained in:
Michael Baum 2020-11-11 07:36:47 +00:00 committed by Ferruh Yigit
parent 436973b0d1
commit 2a87415cc9

View File

@ -1942,6 +1942,7 @@ mlx5_os_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
(list[ns].ifindex,
&list[ns].info);
}
#ifdef HAVE_MLX5DV_DR_DEVX_PORT
if (!ret && bd >= 0) {
switch (list[ns].info.name_type) {
case MLX5_PHYS_PORT_NAME_TYPE_UPLINK:
@ -1959,6 +1960,7 @@ mlx5_os_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
}
continue;
}
#endif
if (!ret && (list[ns].info.representor ^
list[ns].info.master))
ns++;