net/mlx5: fix UAR remapping on non configured queues
priv_tx_uar_remap() is wrongly considering the queue is already configured and thus present in the queue array of the device. Fixes: f8b9a3bad467 ("net/mlx5: install a socket to exchange a file descriptor") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
This commit is contained in:
parent
1f30a22358
commit
fbab400f61
@ -296,6 +296,8 @@ priv_tx_uar_remap(struct priv *priv, int fd)
|
|||||||
* Ref to libmlx5 function: mlx5_init_context()
|
* Ref to libmlx5 function: mlx5_init_context()
|
||||||
*/
|
*/
|
||||||
for (i = 0; i != priv->txqs_n; ++i) {
|
for (i = 0; i != priv->txqs_n; ++i) {
|
||||||
|
if (!(*priv->txqs)[i])
|
||||||
|
continue;
|
||||||
txq = (*priv->txqs)[i];
|
txq = (*priv->txqs)[i];
|
||||||
txq_ctrl = container_of(txq, struct mlx5_txq_ctrl, txq);
|
txq_ctrl = container_of(txq, struct mlx5_txq_ctrl, txq);
|
||||||
/* UAR addr form verbs used to find dup and offset in page. */
|
/* UAR addr form verbs used to find dup and offset in page. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user