From 2a87415cc9c3cf72f498e44f3f42d2b6ca07c7fd Mon Sep 17 00:00:00 2001 From: Michael Baum Date: Wed, 11 Nov 2020 07:36:47 +0000 Subject: [PATCH] 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 --- drivers/net/mlx5/linux/mlx5_os.c | 2 ++ 1 file changed, 2 insertions(+) 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++; -- 2.20.1