From: Devesh Sharma <devesh.sharma@broadcom.com>
To: linux-rdma@vger.kernel.org
Cc: Devesh Sharma <devesh.sharma@broadcom.com>
Subject: [rdma-core 1/4] bnxt_re/lib: fix AH validity check
Date: Mon, 3 May 2021 12:17:59 +0530 [thread overview]
Message-ID: <20210503064802.457482-2-devesh.sharma@broadcom.com> (raw)
In-Reply-To: <20210503064802.457482-1-devesh.sharma@broadcom.com>
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
Fixing the AH validity check when initializing the
UD SQE from AH.
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
---
providers/bnxt_re/verbs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/providers/bnxt_re/verbs.c b/providers/bnxt_re/verbs.c
index ca561662..a015bed7 100644
--- a/providers/bnxt_re/verbs.c
+++ b/providers/bnxt_re/verbs.c
@@ -1193,13 +1193,13 @@ static int bnxt_re_build_ud_sqe(struct bnxt_re_qp *qp, void *wqe,
int len;
len = bnxt_re_build_send_sqe(qp, wqe, wr, is_inline);
- sqe->qkey = htole32(wr->wr.ud.remote_qkey);
- sqe->dst_qp = htole32(wr->wr.ud.remote_qpn);
if (!wr->wr.ud.ah) {
len = -EINVAL;
goto bail;
}
ah = to_bnxt_re_ah(wr->wr.ud.ah);
+ sqe->qkey = htole32(wr->wr.ud.remote_qkey);
+ sqe->dst_qp = htole32(wr->wr.ud.remote_qpn);
sqe->avid = htole32(ah->avid & 0xFFFFF);
bail:
return len;
--
2.25.1
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]
next prev parent reply other threads:[~2021-05-03 6:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-03 6:47 [rdma-core 0/4] Broadcom's rdma provider lib update Devesh Sharma
2021-05-03 6:47 ` Devesh Sharma [this message]
2021-05-03 13:33 ` [rdma-core 1/4] bnxt_re/lib: fix AH validity check Jason Gunthorpe
2021-05-05 15:01 ` Devesh Sharma
2021-05-03 6:48 ` [rdma-core 2/4] bnxt_re/lib: align base sq entry structure to 16B Devesh Sharma
2021-05-03 6:48 ` [rdma-core 3/4] bnxt_re/lib: consolidate hwque and swque in common structure Devesh Sharma
2021-05-04 5:49 ` Leon Romanovsky
2021-05-05 15:01 ` Devesh Sharma
2021-05-03 6:48 ` [rdma-core 4/4] bnxt_re/lib: let bnxt_re_dev store device attrs Devesh Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210503064802.457482-2-devesh.sharma@broadcom.com \
--to=devesh.sharma@broadcom.com \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox