From nobody Tue Feb 1 15:24:13 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 16EFE191548B; Tue, 1 Feb 2022 15:24:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jp7y564b5z3FZb; Tue, 1 Feb 2022 15:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643729054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sok9OSX3ytO5yBFr4+VyOdjwDzcdXEbic7P5uXXDOww=; b=HE9n8dDesBeCbDrHi8AxAOQkncqe6PhxT+f03hWKGTAuv8Ljdyw9QjJo7/oUP2GSAGFTBJ cb1UNvLL70BUUto3iyO87Pew/rTPH7xfRQ8jtx1/eW6KabATKzrGCWONI7Zl0XLAe02flE mS8bJX7ZdLT2DVd2mOh+gAx+4xmrqi9OLEaI9rHQXHkfWJI4YQprmrYHhhXXQ/CwkowxeS Wn/cxAA3GQae4D/fhfYwPWe1MgldXMbhBFu3UKyzpxc2p8GdJ2IEb241nU0o1PKx4MOYjC pefT6tqTHTjgirAsSdrTQ9xR76cfK+WJPyv4mpmRdOjxE7sQN8wZU291fe0dLA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 58AA813521; Tue, 1 Feb 2022 15:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 211FODnT050717; Tue, 1 Feb 2022 15:24:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 211FOD5m050716; Tue, 1 Feb 2022 15:24:13 GMT (envelope-from git) Date: Tue, 1 Feb 2022 15:24:13 GMT Message-Id: <202202011524.211FOD5m050716@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 7800af352ae3 - main - mlx5en: Set CQN in RQ parameters for drop RQ. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7800af352ae377579b4fe49630aab8052c342e4c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643729054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sok9OSX3ytO5yBFr4+VyOdjwDzcdXEbic7P5uXXDOww=; b=Yqs+irl4tjXo5H7liKMQCTqzMGMjP/cm4bB7AEredu8Cy3fs2HQ5eLDUMB3NedcgKBAPhk /q+QjPO/agHGvyrRKWGCT4y9ZuPF+w6BNNbISTRg9lS8J77uXdInMWRpPEUaflyLKwvxvV njCvxO2zNNZ11+h0bqAveOKdI2HiwMBWsU5C3D7WmvWcpxHIHqDDptfLUX4bUVGExUJVb/ ddROGPrKJDuBpuU1EtuoVieqRSpNPnLqfuvfGODCgDGhWajUphSUZzTasRh9IzfWSwVAMp g5IPO9FWqH5JmSqe/pwsd4noFtl/9I/1HSUSb3H0ZVEiRG2l7ehK+fzFtPIJQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643729054; a=rsa-sha256; cv=none; b=Fg4JFdEsJkNFTZhhIGhmtpfBk7VQu48tsN698rNm7mng63Yksqlrmc3yW6NPTPFGYlmR4k Bkse5fV+KUxHan7Wej5mF1yOyVd6nsahI2S6RF2MG+oJpzcrYsOKQeXaxwhD7ZueDCKms1 osUx0MhvTcOss2imZ4LBMYtnAcQVLRB1XQh5N/pMQQb/272Ry/wXzjuAH5MboPp+k9KIBB oFo+jcUMSuKC4hPnKggxeieojLpNtghTVJcus4eC8Dyi4QLMz6ZSgKy1EZX9Yd1I2PWS0U QWrNcyzPTVwUlSoEYk10ulBvjqwQlYpSeRb3oApsTybFcTvLI5A3vVeQvqCWXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=7800af352ae377579b4fe49630aab8052c342e4c commit 7800af352ae377579b4fe49630aab8052c342e4c Author: Hans Petter Selasky AuthorDate: 2022-02-01 15:20:07 +0000 Commit: Hans Petter Selasky 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;