mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Reviewed-by: Don Hiatt <[email protected]> Signed-off-by: Dasaratharaman Chandramouli <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
cb8637660a
commit
ee1c60b1bf
6 changed files with 137 additions and 207 deletions
|
|
@ -454,14 +454,8 @@ int ib_sa_guid_info_rec_query(struct ib_sa_client *client,
|
|||
void *context,
|
||||
struct ib_sa_query **sa_query);
|
||||
|
||||
/* Support get SA ClassPortInfo */
|
||||
int ib_sa_classport_info_rec_query(struct ib_sa_client *client,
|
||||
struct ib_device *device, u8 port_num,
|
||||
int timeout_ms, gfp_t gfp_mask,
|
||||
void (*callback)(int status,
|
||||
struct ib_class_port_info *resp,
|
||||
void *context),
|
||||
void *context,
|
||||
struct ib_sa_query **sa_query);
|
||||
bool ib_sa_sendonly_fullmem_support(struct ib_sa_client *client,
|
||||
struct ib_device *device,
|
||||
u8 port_num);
|
||||
|
||||
#endif /* IB_SA_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue