linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 rdma-next 0/8] Add support for OPA classport info
@ 2017-04-28 21:47 Dasaratharaman Chandramouli
       [not found] ` <1493416031-23917-1-git-send-email-dasaratharaman.chandramouli-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Dasaratharaman Chandramouli @ 2017-04-28 21:47 UTC (permalink / raw)
  To: Doug Ledford; +Cc: linux-rdma

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. Patch 7 moves struct opa_class_port_info
to a common header file. Finally, patch 8 adds OPA classport info
query support.

Changes from v2:
---------------

* Add patch 7 that moves struct opa_class_port_info to a common header
  file

Changes from v1:
---------------
1. Initiate Classport Info refresh also on a LID change and SM change
events.

2. Make proper use of the 'flags' field in struct ib_sa_query that carries
the flag IB_SA_QUERY_OPA. This makes changes to static functions such as
alloc_mad and init_mad unnecessary.

3. Remove the unwanted rename of CLASSPORTINFO_REC_FIELD to
IB_CLASSPORTINFO_REC_FIELD.

4. Fix the subject prefix. Remove 'rdma-core' from the subject.

Dasaratharaman Chandramouli (8):
  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 implicitly cache Class Port info
  IB/core: Add rdma_cap_opa_ah to expose opa address handles
  IB/core: Move opa_class_port_info definition to header file
  IB/SA: Add support to query opa classport info.

 drivers/infiniband/core/cma.c                   |  76 +---
 drivers/infiniband/core/sa_query.c              | 521 ++++++++++++++++--------
 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 +-
 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c |  25 --
 include/rdma/ib_mad.h                           |  25 ++
 include/rdma/ib_sa.h                            |  13 +-
 include/rdma/ib_verbs.h                         |  16 +
 10 files changed, 418 insertions(+), 364 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-28 22:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28 21:47 [PATCH v3 rdma-next 0/8] Add support for OPA classport info Dasaratharaman Chandramouli
     [not found] ` <1493416031-23917-1-git-send-email-dasaratharaman.chandramouli-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-28 21:47   ` [PATCH v3 rdma-next 1/8] IB/SA: Fix lines longer than 80 columns Dasaratharaman Chandramouli
2017-04-28 21:47   ` [PATCH v3 rdma-next 2/8] IB/SA: Add braces when using sizeof Dasaratharaman Chandramouli
2017-04-28 21:47   ` [PATCH v3 rdma-next 3/8] IB/SA: Remove unwanted braces Dasaratharaman Chandramouli
2017-04-28 21:47   ` [PATCH v3 rdma-next 4/8] IB/SA: Move functions update_sm_ah() and ib_sa_event() Dasaratharaman Chandramouli
2017-04-28 21:47   ` [PATCH v3 rdma-next 5/8] IB/SA: Modify SA to implicitly cache Class Port info Dasaratharaman Chandramouli
2017-04-28 21:47   ` [PATCH v3 rdma-next 6/8] IB/core: Add rdma_cap_opa_ah to expose opa address handles Dasaratharaman Chandramouli
2017-04-28 21:47   ` [PATCH v3 rdma-next 7/8] IB/core: Move opa_class_port_info definition to header file Dasaratharaman Chandramouli
     [not found]     ` <1493416031-23917-8-git-send-email-dasaratharaman.chandramouli-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-28 22:44       ` Doug Ledford
2017-04-28 21:47   ` [PATCH v3 rdma-next 8/8] IB/SA: Add support to query opa classport info Dasaratharaman Chandramouli
     [not found]     ` <1493416031-23917-9-git-send-email-dasaratharaman.chandramouli-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-28 22:45       ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).