IB/SA: Modify SA to implicitly cache Class Port info
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Mon, 20 Mar 2017 23:38:08 +0000 (19:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 18:00:17 +0000 (14:00 -0400)
commitee1c60b1bff8f258fa530def3459726f8e922caf
tree6789543122ac386539ddf7c78be2987db68b3824
parentcb8637660ae8e4a1e240692582472bbac708da88
IB/SA: Modify SA to implicitly cache Class Port info

SA will query and cache class port info as part of
its initialization. SA will also invalidate and
refresh the cache based on specific events. Callers such
as IPoIB and CM can query the SA to get the classportinfo
information. Apart from making the caller code much simpler,
this change puts the onus on the SA to query and maintain
classportinfo much like how it maitains the address handle to the SM.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
include/rdma/ib_sa.h