提交 2e9f7cb7 编写于 作者: R Roland Dreier 提交者: Roland Dreier

[PATCH] IB: Add struct for ClassPortInfo

Add structure definition for ClassPortInfo format.  This is
needed for (at least) handling CM redirects.
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 fbed8eee
...@@ -173,6 +173,27 @@ struct ib_vendor_mad { ...@@ -173,6 +173,27 @@ struct ib_vendor_mad {
u8 data[216]; u8 data[216];
}; };
struct ib_class_port_info
{
u8 base_version;
u8 class_version;
__be16 capability_mask;
u8 reserved[3];
u8 resp_time_value;
u8 redirect_gid[16];
__be32 redirect_tcslfl;
__be16 redirect_lid;
__be16 redirect_pkey;
__be32 redirect_qp;
__be32 redirect_qkey;
u8 trap_gid[16];
__be32 trap_tcslfl;
__be16 trap_lid;
__be16 trap_pkey;
__be32 trap_hlqp;
__be32 trap_qkey;
};
/** /**
* ib_mad_send_buf - MAD data buffer and work request for sends. * ib_mad_send_buf - MAD data buffer and work request for sends.
* @mad: References an allocated MAD data buffer. The size of the data * @mad: References an allocated MAD data buffer. The size of the data
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册