aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2007-06-18 14:03:58 -0400
committerRoland Dreier <rolandd@cisco.com>2007-07-11 00:45:31 -0400
commit2aec5c602c6a44e2a3a173339a9ab94549658e4b (patch)
treeb16a5002a07d96b88ad162ac34d628b531844a6f /include
parent1b844afe9e67d6cd441ae6df71051b4004f31dd2 (diff)
IB/sa: Make sure SA queries use default P_Key
MADs sent to the SA should use the the default P_Key (0x7fff/0xffff). There's no requirement that the default P_Key is stored at index 0 in the local P_Key table, so add code to the sa_query module to look up the index of the default P_Key when creating an address handle for the SA (which is done any time the P_Key table might change), and use this index for all SA queries. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/ib_mad.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h
index 739fa4d0e539..30712ddd8a5e 100644
--- a/include/rdma/ib_mad.h
+++ b/include/rdma/ib_mad.h
@@ -111,6 +111,9 @@
111#define IB_QP1_QKEY 0x80010000 111#define IB_QP1_QKEY 0x80010000
112#define IB_QP_SET_QKEY 0x80000000 112#define IB_QP_SET_QKEY 0x80000000
113 113
114#define IB_DEFAULT_PKEY_PARTIAL 0x7FFF
115#define IB_DEFAULT_PKEY_FULL 0xFFFF
116
114enum { 117enum {
115 IB_MGMT_MAD_HDR = 24, 118 IB_MGMT_MAD_HDR = 24,
116 IB_MGMT_MAD_DATA = 232, 119 IB_MGMT_MAD_DATA = 232,