mirror_ubuntu-kernels/drivers/infiniband/hw/hns
Xi Wang 3c873161a0 RDMA/hns: Add support for addressing when hopnum is 0
Currently, WQE and EQE table have already used the mtr interface to config
and access memory by multi-hop addressing when hopnum is from 1 to 3. But
if hopnum is 0, each table need write its own but repetitive logic, and
many duplicate code exists in the mtr interfaces invoke process.

So wraps the public logic as 3 functions: hns_roce_mtr_create(),
hns_roce_mtr_destroy() and hns_roce_mtr_map() to support hopnum ranges from
0 to 3. In addition, makes the mtr interfaces easier to use.

Link: https://lore.kernel.org/r/1586779091-51410-2-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>
2020-04-22 15:59:53 -03:00
..
hns_roce_ah.c RDMA/hns: Modify variable/field name from vlan to vlan_id 2019-10-21 15:29:38 -04:00
hns_roce_alloc.c RDMA/hns: Fix non-standard error codes 2019-11-08 16:37:54 -04:00
hns_roce_cmd.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_cmd.h RDMA/hns: Rename the functions used inside creating cq 2019-11-25 10:31:48 -04:00
hns_roce_common.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_cq.c RDMA/hns: Fix wrong judgments of udata->outlen 2020-03-13 11:36:58 -03:00
hns_roce_db.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
hns_roce_device.h RDMA/hns: Add support for addressing when hopnum is 0 2020-04-22 15:59:53 -03:00
hns_roce_hem.c RDMA/hns: Add support for addressing when hopnum is 0 2020-04-22 15:59:53 -03:00
hns_roce_hem.h RDMA/hns: Add support for addressing when hopnum is 0 2020-04-22 15:59:53 -03:00
hns_roce_hw_v1.c RDMA/hns: Remove meaningless prints 2020-03-26 16:52:28 -03:00
hns_roce_hw_v1.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_hw_v2.c RDMA/hns: Reduce PFC frames in congestion scenarios 2020-03-29 11:04:21 -03:00
hns_roce_hw_v2.h RDMA/hns: Modify the mask of QP number for CQE of hip08 2020-03-29 11:04:21 -03:00
hns_roce_main.c RDMA/hns: Remove some redundant variables related to capabilities 2020-01-15 14:11:34 -04:00
hns_roce_mr.c RDMA/hns: Add support for addressing when hopnum is 0 2020-04-22 15:59:53 -03:00
hns_roce_pd.c RDMA/hns: Unify format of prints 2020-03-26 16:52:26 -03:00
hns_roce_qp.c RDMA/hns: Check if depth of qp is 0 before configure 2020-03-18 19:30:36 -03:00
hns_roce_restrack.c RDMA/hns: Fix memory leak on 'context' on error return path 2019-10-28 13:41:23 -03:00
hns_roce_srq.c RDMA/hns: Cleanups of magic numbers 2020-02-11 14:10:20 -04:00
Kconfig RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00
Makefile RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00