IB/hfi1: Enable RDMA_CAP_OPA_AH in hfi driver to support extended LIDs
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Fri, 4 Aug 2017 20:54:53 +0000 (13:54 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:37 +0000 (14:22 -0400)
Enabling this bit helps core components query for extended address
support using the rdma_cap_opa_ah interface.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/verbs.c

index d279f53fc66e461e53336cc76b2b86be2b000406..e232f3c608b41795a2da43b5439687756c9ec24d 100644 (file)
@@ -1911,7 +1911,8 @@ int hfi1_register_ib_device(struct hfi1_devdata *dd)
        dd->verbs_dev.rdi.dparms.psn_mask = PSN_MASK;
        dd->verbs_dev.rdi.dparms.psn_shift = PSN_SHIFT;
        dd->verbs_dev.rdi.dparms.psn_modify_mask = PSN_MODIFY_MASK;
-       dd->verbs_dev.rdi.dparms.core_cap_flags = RDMA_CORE_PORT_INTEL_OPA;
+       dd->verbs_dev.rdi.dparms.core_cap_flags = RDMA_CORE_PORT_INTEL_OPA |
+                                               RDMA_CORE_CAP_OPA_AH;
        dd->verbs_dev.rdi.dparms.max_mad_size = OPA_MGMT_MAD_SIZE;
 
        dd->verbs_dev.rdi.driver_f.qp_priv_alloc = qp_priv_alloc;