]> err.no Git - linux-2.6/commitdiff
[PATCH] IB: Add struct for ClassPortInfo
authorRoland Dreier <roland@eddore.topspincom.com>
Fri, 9 Sep 2005 22:45:57 +0000 (15:45 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 9 Sep 2005 22:45:57 +0000 (15:45 -0700)
Add structure definition for ClassPortInfo format.  This is
needed for (at least) handling CM redirects.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/rdma/ib_mad.h

index fc6b1c18ffc698fae47992646c2abed213a9ac3a..53184a38fdf64c5cee649dc482ab2fc656a936cf 100644 (file)
@@ -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