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)
commitd58131e6b7a9a077ebbb1f9fe34e979fad98e554
tree1bb3b562156c2fd7f469c15b9cd574426711eed3
parent778ddd7129055671ea9ccff9c210fffda57baf1f
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