git: 03567b0dfa71 - main - mlx5en: Set channel pointer for drop receive queue.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Feb 2022 15:24:12 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=03567b0dfa713797c52f2c9f27d8c1d4c631ceb5 commit 03567b0dfa713797c52f2c9f27d8c1d4c631ceb5 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-02-01 15:20:06 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-02-01 15:21:14 +0000 mlx5en: Set channel pointer for drop receive queue. A valid channel pointer is needed to get the priv pointer during init. MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index 179da5b52b58..cc94ddf62e5f 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -1508,6 +1508,9 @@ mlx5e_open_drop_rq(struct mlx5e_priv *priv, void *rqc_wq = MLX5_ADDR_OF(rqc, param_rq.rqc, wq); int err; + /* set channel pointer */ + drop_rq->channel = priv->channel; + /* set basic CQ parameters needed */ MLX5_SET(cqc, param_cq.cqc, log_cq_size, 0); MLX5_SET(cqc, param_cq.cqc, uar_page, priv->mdev->priv.uar->index);