diff options
author | Roland Dreier <roland@eddore.topspincom.com> | 2005-09-09 18:45:57 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-09 18:45:57 -0400 |
commit | 2e9f7cb7869059e55cd91f5e23c6380f3763db56 (patch) | |
tree | 17d09d7aa21a92b916de8b0831225fa8e9bd1728 /include/rdma | |
parent | fbed8eee70cf7e11fbf231afafc0ccb313acc62e (diff) |
[PATCH] IB: Add struct for ClassPortInfo
Add structure definition for ClassPortInfo format. This is
needed for (at least) handling CM redirects.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_mad.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index fc6b1c18ffc..53184a38fdf 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h | |||
@@ -173,6 +173,27 @@ struct ib_vendor_mad { | |||
173 | u8 data[216]; | 173 | u8 data[216]; |
174 | }; | 174 | }; |
175 | 175 | ||
176 | struct ib_class_port_info | ||
177 | { | ||
178 | u8 base_version; | ||
179 | u8 class_version; | ||
180 | __be16 capability_mask; | ||
181 | u8 reserved[3]; | ||
182 | u8 resp_time_value; | ||
183 | u8 redirect_gid[16]; | ||
184 | __be32 redirect_tcslfl; | ||
185 | __be16 redirect_lid; | ||
186 | __be16 redirect_pkey; | ||
187 | __be32 redirect_qp; | ||
188 | __be32 redirect_qkey; | ||
189 | u8 trap_gid[16]; | ||
190 | __be32 trap_tcslfl; | ||
191 | __be16 trap_lid; | ||
192 | __be16 trap_pkey; | ||
193 | __be32 trap_hlqp; | ||
194 | __be32 trap_qkey; | ||
195 | }; | ||
196 | |||
176 | /** | 197 | /** |
177 | * ib_mad_send_buf - MAD data buffer and work request for sends. | 198 | * ib_mad_send_buf - MAD data buffer and work request for sends. |
178 | * @mad: References an allocated MAD data buffer. The size of the data | 199 | * @mad: References an allocated MAD data buffer. The size of the data |