lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6aa101b0-970e-9331-4819-7202b6c2bfcf@hisilicon.com>
Date:   Fri, 20 Jan 2023 17:14:53 +0800
From:   "xuhaoyue (A)" <xuhaoyue1@...ilicon.com>
To:     Leon Romanovsky <leon@...nel.org>
CC:     <jgg@...dia.com>, <linux-rdma@...r.kernel.org>,
        <linuxarm@...wei.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH for-next 0/3] Refactor rq inline and add cqe inline

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ