summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorRoland Dreier <roland@eddore.topspincom.com>2005-09-10 00:45:57 +0200
committerRoland Dreier <rolandd@cisco.com>2005-09-10 00:45:57 +0200
commit2e9f7cb7869059e55cd91f5e23c6380f3763db56 (patch)
tree17d09d7aa21a92b916de8b0831225fa8e9bd1728 /include/rdma
parent[PATCH] IB: Move SA attributes to ib_sa.h (diff)
downloadlinux-2e9f7cb7869059e55cd91f5e23c6380f3763db56.tar.xz
linux-2e9f7cb7869059e55cd91f5e23c6380f3763db56.zip
[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.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h
index fc6b1c18ffc6..53184a38fdf6 100644
--- a/include/rdma/ib_mad.h
+++ b/include/rdma/ib_mad.h
@@ -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