path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
authorMatan Azrad <>2019-05-30 10:20:38 +0000
committerFerruh Yigit <>2019-06-14 00:01:06 +0900
commit2d77cb615b2c126828c4e98b686523bf0139c1c1 (patch)
tree51fbd8b86daeb66a3046196e47c59a50af0fab65 /drivers/net/mlx5/mlx5_trigger.c
parent957e45fb7bcbcfa1dec7ebca2ffe3a811c5bafca (diff)
net/mlx5: recover secondary process Rx errors
The RQ errors recovery mechanism in the PMD invokes a Verbs functions to modify the RQ states in order to reset the RQ and to reactivate it. These Verbs functions are not allowed to be invoked from a secondary process, hence the PMD skips the recovery when the error is captured by secondary processes queues. Using the DPDK IPC mechanism the secondary process can request Verbs queues state modifications to be done synchronically by the primary process. Add support for secondary process Rx errors recovery. Cc: Signed-off-by: Matan Azrad <> Acked-by: Shahaf Shuler <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index d5ce74d..864c985 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -126,6 +126,7 @@ mlx5_rxq_start(struct rte_eth_dev *dev)
rxq_ctrl->ibv = mlx5_rxq_ibv_new(dev, i);
if (!rxq_ctrl->ibv)
goto error;
+ rxq_ctrl->wqn = rxq_ctrl->ibv->wq->wq_num;
return 0;