Skip to content

Commit

Permalink
[PATCH] IB: Add struct for ClassPortInfo
Browse files Browse the repository at this point in the history
Add structure definition for ClassPortInfo format.  This is
needed for (at least) handling CM redirects.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Roland Dreier authored and Roland Dreier committed Sep 9, 2005
1 parent fbed8ee commit 2e9f7cb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions include/rdma/ib_mad.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,27 @@ struct ib_vendor_mad {
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.
* @mad: References an allocated MAD data buffer. The size of the data
Expand Down

0 comments on commit 2e9f7cb

Please sign in to comment.