summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_txq.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_txq.c
parent3ff4b0866fe22840994be631e552c9420204fc1e (diff)
downloaddpdk-next-eventdev-9083982ce70d1e7299626b4e40870f96a8c93112.zip
dpdk-next-eventdev-9083982ce70d1e7299626b4e40870f96a8c93112.tar.gz
dpdk-next-eventdev-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_txq.c')
-rw-r--r--drivers/net/mlx5/mlx5_txq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index 669b913..5057561 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -434,7 +434,7 @@ mlx5_txq_ibv_new(struct rte_eth_dev *dev, uint16_t idx)
/* Move the QP to this state. */
.qp_state = IBV_QPS_INIT,
/* Primary port number. */
- .port_num = priv->port
+ .port_num = 1,
};
ret = mlx5_glue->modify_qp(tmpl.qp, &attr.mod,
(IBV_QP_STATE | IBV_QP_PORT));