git: 7800af352ae3 - main - mlx5en: Set CQN in RQ parameters for drop RQ.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Feb 2022 15:24:13 UTC
The branch main has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=7800af352ae377579b4fe49630aab8052c342e4c
commit 7800af352ae377579b4fe49630aab8052c342e4c
Author: Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-02-01 15:20:07 +0000
Commit: Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-02-01 15:21:14 +0000
mlx5en: Set CQN in RQ parameters for drop RQ.
Else creating the drop RQ fails.
MFC after: 1 week
Sponsored by: NVIDIA Networking
---
sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
index cc94ddf62e5f..8d840d54b964 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -1350,7 +1350,6 @@ mlx5e_enable_rq(struct mlx5e_rq *rq, struct mlx5e_rq_param *param)
memcpy(rqc, param->rqc, sizeof(param->rqc));
- MLX5_SET(rqc, rqc, cqn, c->rq.cq.mcq.cqn);
MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST);
MLX5_SET(rqc, rqc, ts_format, ts_format);
MLX5_SET(rqc, rqc, flush_in_error_en, 1);
@@ -1438,6 +1437,9 @@ mlx5e_open_rq(struct mlx5e_channel *c,
if (err)
return (err);
+ /* set CQN in RQ parameters */
+ MLX5_SET(rqc, param->rqc, cqn, c->rq.cq.mcq.cqn);
+
err = mlx5e_enable_rq(rq, param);
if (err)
goto err_destroy_rq;
@@ -1535,6 +1537,9 @@ mlx5e_open_drop_rq(struct mlx5e_priv *priv,
if (err)
goto err_close_cq;
+ /* set CQN in RQ parameters */
+ MLX5_SET(rqc, param_rq.rqc, cqn, drop_rq->cq.mcq.cqn);
+
err = mlx5e_enable_rq(drop_rq, ¶m_rq);
if (err)
goto err_wq_destroy;