From: Michael Baum Date: Wed, 11 Nov 2020 07:36:47 +0000 (+0000) Subject: net/mlx5/linux: fix probing adjustment depending on DevX X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2a87415cc9c3cf72f498e44f3f42d2b6ca07c7fd;p=dpdk.git 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 Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index c78d56fae3..ce25108b90 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -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++;