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:
parent
436973b0d1
commit
2a87415cc9
@ -1942,6 +1942,7 @@ mlx5_os_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
|
|||||||
(list[ns].ifindex,
|
(list[ns].ifindex,
|
||||||
&list[ns].info);
|
&list[ns].info);
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_MLX5DV_DR_DEVX_PORT
|
||||||
if (!ret && bd >= 0) {
|
if (!ret && bd >= 0) {
|
||||||
switch (list[ns].info.name_type) {
|
switch (list[ns].info.name_type) {
|
||||||
case MLX5_PHYS_PORT_NAME_TYPE_UPLINK:
|
case MLX5_PHYS_PORT_NAME_TYPE_UPLINK:
|
||||||
@ -1959,6 +1960,7 @@ mlx5_os_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (!ret && (list[ns].info.representor ^
|
if (!ret && (list[ns].info.representor ^
|
||||||
list[ns].info.master))
|
list[ns].info.master))
|
||||||
ns++;
|
ns++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user