RDMA/hns: Support 0 hop addressing for WQE buffer
authorXi Wang <wangxi11@huawei.com>
Mon, 13 Apr 2020 11:58:09 +0000 (19:58 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 22 Apr 2020 18:59:54 +0000 (15:59 -0300)
commitd563099e3e89c48caf9cc183ab3d39dd326c8987
tree91804ca16dd271329cf0ac2854b0c3160ac2ea8d
parent477a0a38707249227d8929648baf5abbdd58c40f
RDMA/hns: Support 0 hop addressing for WQE buffer

Add the zero hop addressing support by using new mtr interface for WQE
buffer and simple mtr invoking process, so WQE buffer can support hopnum
between 0 to 3.

Link: https://lore.kernel.org/r/1586779091-51410-5-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_qp.c