From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dasaratharaman Chandramouli Subject: [PATCH rdma-core 0/7] Add support for OPA classport info Date: Wed, 15 Mar 2017 17:24:19 -0400 Message-ID: <1489613066-61684-1-git-send-email-dasaratharaman.chandramouli@intel.com> Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Don Hiatt , Ira Weiny , Doug Ledford , linux-rdma List-Id: linux-rdma@vger.kernel.org This series moves the classport info query initiation and update from callers such as ipoib to the ib_sa module itself. The classport info cache is updated whenever ib_sa receives an appropriate state change event. Since classport info is only used to check if sendonly full member support is enabled by the SM, we expose a function ib_sa_sendonly_fullmem_support that can be called to check if the support is enabled. Additionally, we introduce support for opa classport info. These are defined specifically for OPA devices and expose additional features in the capability mask bits along with longer LID sizes in some of the other fields. Patch 1 to 3 fix checkpatch issues (1 issue type per patch) on two functions that patch 4 then moves around. Patch 5 makes changes to implicitly query and cache classport info. Patch 6 adds verbs capability API for core layers to query and find out if they are running on an OPA device. Finally, patch 7 adds OPA classport info query support. Dasaratharaman Chandramouli (7): IB/SA: Fix lines longer than 80 columns IB/SA: Add braces when using sizeof IB/SA: Remove unwanted braces IB/SA: Move functions update_sm_ah() and ib_sa_event() IB/SA: Modify SA to implicity cache Class Port info IB/core: Add rdma_cap_opa_ah to expose opa address handles IB/SA: Add support to query opa classport info. drivers/infiniband/core/cma.c | 76 +--- drivers/infiniband/core/sa_query.c | 574 +++++++++++++++++-------- drivers/infiniband/hw/hfi1/mad.c | 25 -- drivers/infiniband/ulp/ipoib/ipoib.h | 1 - drivers/infiniband/ulp/ipoib/ipoib_main.c | 71 --- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 9 +- include/rdma/ib_mad.h | 25 ++ include/rdma/ib_sa.h | 13 +- include/rdma/ib_verbs.h | 16 + 9 files changed, 447 insertions(+), 363 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html