RDMA/hns: Support inline data in extented sge space for RC
authorWeihang Li <liweihang@huawei.com>
Thu, 10 Sep 2020 13:21:09 +0000 (21:21 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Sep 2020 19:06:57 +0000 (16:06 -0300)
commit30b707886aeb89eee4e6b4e0c1aba9fb50e30a5f
tree1bb3b562156c2fd7f469c15b9cd574426711eed3
parent05df49279f8926178ecb3ce88e61b63104cd6293
RDMA/hns: Support inline data in extented sge space for RC

HIP08 supports RC inline up to size of 32 Bytes, and all data should be
put into SQWQE. For HIP09, this capability is extended to 1024 Bytes, if
length of data is longer than 32 Bytes, they will be filled into extended
sge space.

Link: https://lore.kernel.org/r/1599744069-9968-1-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.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_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_qp.c