summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2018-07-10 18:04:46 +0200
committerShahaf Shuler <shahafs@mellanox.com>2018-07-11 15:36:55 +0200
commit9083982ce70d1e7299626b4e40870f96a8c93112 (patch)
tree37d54257acce6c12e977b2dbc41870b36e414aff /drivers/net/mlx5/mlx5_ethdev.c
parent3ff4b0866fe22840994be631e552c9420204fc1e (diff)
downloaddpdk-9083982ce70d1e7299626b4e40870f96a8c93112.zip
dpdk-9083982ce70d1e7299626b4e40870f96a8c93112.tar.gz
dpdk-9083982ce70d1e7299626b4e40870f96a8c93112.tar.xz
net/mlx5: drop useless support for several Verbs ports
Unlike mlx4 from which this capability was inherited, mlx5 devices expose exactly one Verbs port per PCI bus address. Each physical port gets assigned its own bus address with a single Verbs port. While harmless, this code requires an extra loop that would get in the way of subsequent refactoring. No functional impact. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
-rw-r--r--drivers/net/mlx5/mlx5_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index ebe5cb6..819f5ba 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -166,7 +166,7 @@ try_dev_id:
if (dev_port == dev_port_prev)
goto try_dev_id;
dev_port_prev = dev_port;
- if (dev_port == (priv->port - 1u))
+ if (dev_port == 0)
strlcpy(match, name, sizeof(match));
}
closedir(dir);