Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1474660

[PATCH for-next 04/10] IB/hns: Fix the value of device_cap_flags

From Salil Mehta <salil.mehta@huawei.com>
Newsgroups linux.kernel
Subject [PATCH for-next 04/10] IB/hns: Fix the value of device_cap_flags
Date 2016-09-01 23:30 +0200
Message-ID <scHID-79t-55@gated-at.bofh.it> (permalink)
References <scHIB-79t-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Lijun Ou <oulijun@huawei.com>

In the latest IB core version, it has some known issues
with memory registration using the local_dma_lkey.
Thus RoCE don't expose support for it, and remove
device->local_dma_lkey which is introduced to working systems.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
---
 drivers/infiniband/hw/hns/hns_roce_main.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c
index ec27f0c..b54074d 100644
--- a/drivers/infiniband/hw/hns/hns_roce_main.c
+++ b/drivers/infiniband/hw/hns/hns_roce_main.c
@@ -368,8 +368,7 @@ static int hns_roce_query_device(struct ib_device *ib_dev,
 	props->max_qp = hr_dev->caps.num_qps;
 	props->max_qp_wr = hr_dev->caps.max_wqes;
 	props->device_cap_flags = IB_DEVICE_PORT_ACTIVE_EVENT |
-				  IB_DEVICE_RC_RNR_NAK_GEN |
-				  IB_DEVICE_LOCAL_DMA_LKEY;
+				  IB_DEVICE_RC_RNR_NAK_GEN;
 	props->max_sge = hr_dev->caps.max_sq_sg;
 	props->max_sge_rd = 1;
 	props->max_cq = hr_dev->caps.num_cqs;
-- 
1.7.9.5

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH for-next 00/10] Add CM(Connection Manager) Support to HNS RoCe Driver Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 10/10] IB/hns: Add node_guid definition to the bindings document Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 01/10] IB/hns: Register HNS RoCE Driver get_netdev() with IB Core Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 07/10] IB/hns: Change the logic for allocating uar registers Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 08/10] IB/hns: Fix the bug of rdma cm connecting on user mode Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 09/10] IB/hns: Fix two bugs for rdma cm connecting Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 04/10] IB/hns: Fix the value of device_cap_flags Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 05/10] IB/hns: Fix two possible bugs for rdma cm Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200
  [PATCH for-next 06/10] IB/hns: Add phy_port for computing GSI/QPN Salil Mehta <salil.mehta@huawei.com> - 2016-09-01 23:30 +0200

csiph-web