]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e06d60fba207b5c721a0f00230f7ab895510aca
tree6789543122ac386539ddf7c78be2987db68b3824
parentc3ba7fcb615759d92059a260fddbc5a1f65354c7
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