Re: [PATCH for-next 0/3] Refactor rq inline and add cqe inline

From: xuhaoyue (A)
Date: Fri Jan 20 2023 - 04:15:27 EST


On 2022/12/28 20:28:25, Leon Romanovsky wrote:
> On Sat, Dec 24, 2022 at 06:21:58PM +0800, Haoyue Xu wrote:
>> The patchset mainly removes the kernel space
>> rq inline features and supports cqe inline in user space.
>>
>> Luoyouming (3):
>> RDMA/hns: Remove rq inline in kernel
>> RDMA/hns: Add compatibility handling for only support userspace rq
>> inline
>> RDMA/hns: Support cqe inline in user space
>>
>> drivers/infiniband/hw/hns/hns_roce_device.h | 19 +---
>> drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 109 ++++++--------------
>> drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 3 +-
>> drivers/infiniband/hw/hns/hns_roce_main.c | 12 +++
>> drivers/infiniband/hw/hns/hns_roce_qp.c | 66 +-----------
>> include/uapi/rdma/hns-abi.h | 4 +
>
> Your commit messages are too scarce for patches which touch UAPI.
> Please add more details about why you deleted, what users should do next
> and what are the features you are adding,
>
> Thanks
>
>> 6 files changed, 54 insertions(+), 159 deletions(-)
>>
>> --
>> 2.30.0
>>
> .
>

Hi Leon,
Sorry for the late response.

The cqe inline feature works as follows: payloads less than or equal to 32 bytes will be placed in the cqe, and the hardware will no longer need to access the pbl table and move the payload data.
Instead, the driver will move the payload to the user data space, which is conducive to improving the latency performance of the send/receive operation.
If rq inline and cqe inline are enabled at the same time, the data packet whose payload length is less than or equal to 32 bytes uses the cqe inline feature,
and the data packet greater than 32 bytes and less than or equal to 1024 bytes uses the rq inline feature.

For the reason of deleting kernel space rq inline, Since no user currently uses kernel-mode rq inline, then only supports user-mode rq inline in further plans.
To reduce maintenance, remove unsupported kernel state rq inline-related code.
I will add this to the user-space patch if this explanation is ok?

Sincerely,
Haoyue