Message ID | 20210503064802.457482-2-devesh.sharma@broadcom.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Broadcom's rdma provider lib update | expand |
On Mon, May 03, 2021 at 12:17:59PM +0530, Devesh Sharma wrote: > 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(-) This all need fixes lines and why do they have such a strange subject? Jason
On Mon, May 3, 2021 at 7:03 PM Jason Gunthorpe <jgg@ziepe.ca> wrote: > > On Mon, May 03, 2021 at 12:17:59PM +0530, Devesh Sharma wrote: > > 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(-) > > This all need fixes lines and why do they have such a strange subject? Let me get back with V2. May be I did the patches in a hurry, let me correct these. > > > Jason -- -Regards Devesh
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;
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(-)