All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wenpeng Liang <liangwenpeng@huawei.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: <leon@kernel.org>, <linux-rdma@vger.kernel.org>, <linuxarm@huawei.com>
Subject: Re: [PATCH for-next 2/2] RDMA/hns: Add NOP operation for sending WR
Date: Sat, 16 Apr 2022 10:11:10 +0800	[thread overview]
Message-ID: <c71b711f-8c89-6ac5-850b-16624af14168@huawei.com> (raw)
In-Reply-To: <20220407132012.GL2120790@nvidia.com>

On 2022/4/7 21:20, Jason Gunthorpe wrote:
> On Thu, Apr 07, 2022 at 09:14:03PM +0800, Wenpeng Liang wrote:
>> From: Yangyang Li <liyangyang20@huawei.com>
>>
>> The NOP operation is a no-op, mainly used in scenarios where SQWQE requires
>> page alignment or WQE size alignment. Each NOP WR consumes one SQWQE, but
>> the hardware does not operate and directly generates a CQE. The IB
>> specification does not specify this type of WR.
>>
>> Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
>> Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
>> ---
>>  drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 9 +++++++++
>>  drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 9 +++++++++
>>  2 files changed, 18 insertions(+)
> 
> Where is it used?
> 

This function has a precondition. The driver needs to provide two interfaces
to the user, one interface is used to fill the wqe, and the other is used to
ring the doorbell. If the content of the wqe is repeated, then the user does
not need to fill this wqe again but directly rings the doorbell.

If the user's wqe used to complete the specified work request does not fill
the send queue, then the user can fill the remaining wqe in the send queue
as a NOP operation.

This feature requires some cooperating code and does not meet the upstream
conditions. Therefore, I will revoke this patch.

Thanks,
Wenpeng

> Jason
> .
> 

      reply	other threads:[~2022-04-16  2:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07 13:14 [PATCH for-next 0/2] RDMA/hns: Add NOP operation for sending WR Wenpeng Liang
2022-04-07 13:14 ` [PATCH for-next 1/2] RDMA/hns: Modify the name of the macro used to map opcodes Wenpeng Liang
2022-04-07 13:14 ` [PATCH for-next 2/2] RDMA/hns: Add NOP operation for sending WR Wenpeng Liang
2022-04-07 13:20   ` Jason Gunthorpe
2022-04-16  2:11     ` Wenpeng Liang [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=c71b711f-8c89-6ac5-850b-16624af14168@huawei.com \
    --to=liangwenpeng@huawei.com \
    --cc=jgg@nvidia.com \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    /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.