git: e2c02a492051 - stable/13 - mlx5en: Set channel pointer for drop receive queue.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 08 Feb 2022 15:13:49 UTC
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=e2c02a492051b1af6b2812823c0410505f01ab99

commit e2c02a492051b1af6b2812823c0410505f01ab99
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-02-08 15:08:51 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-02-08 15:08:51 +0000

    mlx5en: Set channel pointer for drop receive queue.
    
    A valid channel pointer is needed to get the priv pointer during init.
    
    Sponsored by:   NVIDIA Networking
    
    (cherry picked from commit 03567b0dfa713797c52f2c9f27d8c1d4c631ceb5)
---
 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 c2a4e76942a2..bd1e344e65cd 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -1500,6 +1500,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);