From: Guoqing Jiang <guoqing.jiang@linux.dev>
To: Bernard Metzler <BMT@zurich.ibm.com>,
"jgg@ziepe.ca" <jgg@ziepe.ca>,
"leon@kernel.org" <leon@kernel.org>
Cc: "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH 4/4] RDMA/siw: Call orq_get_current if possible
Date: Sun, 3 Dec 2023 17:15:03 +0800 [thread overview]
Message-ID: <1d9842b1-76b1-636d-cb71-87d2becf552c@linux.dev> (raw)
In-Reply-To: <BY5PR15MB3602DEB9CA3010A31907C67D9981A@BY5PR15MB3602.namprd15.prod.outlook.com>
On 12/1/23 23:47, Bernard Metzler wrote:
>
>> -----Original Message-----
>> From: Guoqing Jiang <guoqing.jiang@linux.dev>
>> Sent: Wednesday, November 29, 2023 4:24 AM
>> To: Bernard Metzler <BMT@zurich.ibm.com>; jgg@ziepe.ca; leon@kernel.org
>> Cc: linux-rdma@vger.kernel.org; guoqing.jiang@linux.dev
>> Subject: [EXTERNAL] [PATCH 4/4] RDMA/siw: Call orq_get_current if possible
>>
>> We can call it in siw_orq_empty.
>>
>> Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
>> ---
>> drivers/infiniband/sw/siw/siw.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/infiniband/sw/siw/siw.h
>> b/drivers/infiniband/sw/siw/siw.h
>> index 2edba2a864bb..75253f2b3e3d 100644
>> --- a/drivers/infiniband/sw/siw/siw.h
>> +++ b/drivers/infiniband/sw/siw/siw.h
>> @@ -657,7 +657,7 @@ static inline struct siw_sqe *orq_get_free(struct
>> siw_qp *qp)
>>
>> static inline int siw_orq_empty(struct siw_qp *qp)
>> {
>> - return qp->orq[qp->orq_get % qp->attrs.orq_size].flags == 0 ? 1 : 0;
>> + return orq_get_current(qp)->flags == 0 ? 1 : 0;
>> }
>>
>> static inline struct siw_sqe *irq_alloc_free(struct siw_qp *qp)
>> --
>> 2.35.3
> Please change the commit message. Something like
> 'Use orq_get_current() in siw_orq_empty()'.
Ok, will do.
> Otherwise looks good!
>
> Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Thanks for your review!
Guoqing
prev parent reply other threads:[~2023-12-03 9:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-29 3:24 [PATCH 0/4] Misc changes for siw Guoqing Jiang
2023-11-29 3:24 ` [PATCH 1/4] RDMA/siw: Move tx_cpu ahead Guoqing Jiang
2023-12-01 15:43 ` Bernard Metzler
2023-11-29 3:24 ` [PATCH 2/4] RDMA/siw: Reduce memory usage of struct siw_rx_stream Guoqing Jiang
2023-12-01 15:43 ` Bernard Metzler
2023-11-29 3:24 ` [PATCH 3/4] RDMA/siw: Set qp_state in siw_query_qp Guoqing Jiang
2023-11-30 18:09 ` Bernard Metzler
2023-12-01 1:29 ` Guoqing Jiang
2023-11-29 3:24 ` [PATCH 4/4] RDMA/siw: Call orq_get_current if possible Guoqing Jiang
2023-12-01 15:47 ` Bernard Metzler
2023-12-03 9:15 ` Guoqing Jiang [this message]
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=1d9842b1-76b1-636d-cb71-87d2becf552c@linux.dev \
--to=guoqing.jiang@linux.dev \
--cc=BMT@zurich.ibm.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.