RDMA/hns: Add compatibility handling for only support userspace rq inline
authorLuoyouming <luoyouming@huawei.com>
Sat, 24 Dec 2022 10:22:00 +0000 (18:22 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 9 Jan 2023 14:45:28 +0000 (10:45 -0400)
commit2bb185c68bf4c147f43d932e8a34fa150d148940
treea1ffbb93181e02d8e634442994ab1dd5e1412b34
parent968606e252e3f4c06f1ac63f8f6527c8374c5eb6
RDMA/hns: Add compatibility handling for only support userspace rq inline

The rq inline makes some changes as follows, Firstly, it is only used in
user space. Secondly, it should notify hardware in QP RTR status. Thirdly,
Add compatibility processing between different user space and kernel
space.

Link: https://lore.kernel.org/r/20221224102201.3114536-3-xuhaoyue1@hisilicon.com
Signed-off-by: Luoyouming <luoyouming@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/hns-abi.h