[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>

authored by

Roland Dreier and committed by
Roland Dreier
2e9f7cb7 fbed8eee

+21
+21
include/rdma/ib_mad.h
··· 173 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 198 * ib_mad_send_buf - MAD data buffer and work request for sends. 178 199 * @mad: References an allocated MAD data buffer. The size of the data