aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_sa.h
diff options
context:
space:
mode:
authorErez Shitrit <erezsh@mellanox.com>2016-05-25 15:02:05 -0400
committerDoug Ledford <dledford@redhat.com>2016-05-25 15:39:02 -0400
commit628e6f75156eac6979eacc2e9383e41f6432beb4 (patch)
tree6de607b2d5ee7f522510ea3c1a88b8d6cf469a21 /include/rdma/ib_sa.h
parent507f6afa3ab6c9473d81c8091be0d1b859509a6d (diff)
IB/SA Agent: Add support for SA agent get ClassPortInfo
New SA query function to return the ClassPortInfo struct from the SA. If the SM supports FullMemberSendOnly mode for MCG's, it sets a capability bit in the capability_mask2 field of the response. Signed-off-by: Erez Shitrit <erezsh@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_sa.h')
-rw-r--r--include/rdma/ib_sa.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/rdma/ib_sa.h b/include/rdma/ib_sa.h
index cdc1c81aa275..384041669489 100644
--- a/include/rdma/ib_sa.h
+++ b/include/rdma/ib_sa.h
@@ -94,6 +94,8 @@ enum ib_sa_selector {
94 IB_SA_BEST = 3 94 IB_SA_BEST = 3
95}; 95};
96 96
97#define IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT BIT(12)
98
97/* 99/*
98 * Structures for SA records are named "struct ib_sa_xxx_rec." No 100 * Structures for SA records are named "struct ib_sa_xxx_rec." No
99 * attempt is made to pack structures to match the physical layout of 101 * attempt is made to pack structures to match the physical layout of
@@ -439,4 +441,14 @@ int ib_sa_guid_info_rec_query(struct ib_sa_client *client,
439 void *context, 441 void *context,
440 struct ib_sa_query **sa_query); 442 struct ib_sa_query **sa_query);
441 443
444/* Support get SA ClassPortInfo */
445int ib_sa_classport_info_rec_query(struct ib_sa_client *client,
446 struct ib_device *device, u8 port_num,
447 int timeout_ms, gfp_t gfp_mask,
448 void (*callback)(int status,
449 struct ib_class_port_info *resp,
450 void *context),
451 void *context,
452 struct ib_sa_query **sa_query);
453
442#endif /* IB_SA_H */ 454#endif /* IB_SA_H */