RDMA/cm: Send and receive ECE parameter over the wire
[linux-2.6-microblaze.git] / include / rdma / ib_cm.h
index 058cfbc..0f1ea5f 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <rdma/ib_mad.h>
 #include <rdma/ib_sa.h>
+#include <rdma/rdma_cm.h>
 
 /* ib_cm and ib_user_cm modules share /sys/class/infiniband_cm */
 extern struct class cm_class;
@@ -115,6 +116,7 @@ struct ib_cm_req_event_param {
        unsigned int            retry_count:3;
        unsigned int            rnr_retry_count:3;
        unsigned int            srq:1;
+       struct rdma_ucm_ece     ece;
 };
 
 struct ib_cm_rep_event_param {
@@ -129,6 +131,7 @@ struct ib_cm_rep_event_param {
        unsigned int            flow_control:1;
        unsigned int            rnr_retry_count:3;
        unsigned int            srq:1;
+       struct rdma_ucm_ece     ece;
 };
 
 enum ib_cm_rej_reason {
@@ -164,7 +167,8 @@ enum ib_cm_rej_reason {
        IB_CM_REJ_DUPLICATE_LOCAL_COMM_ID       = 30,
        IB_CM_REJ_INVALID_CLASS_VERSION         = 31,
        IB_CM_REJ_INVALID_FLOW_LABEL            = 32,
-       IB_CM_REJ_INVALID_ALT_FLOW_LABEL        = 33
+       IB_CM_REJ_INVALID_ALT_FLOW_LABEL        = 33,
+       IB_CM_REJ_VENDOR_OPTION_NOT_SUPPORTED   = 35,
 };
 
 struct ib_cm_rej_event_param {
@@ -369,6 +373,7 @@ struct ib_cm_req_param {
        u8                      rnr_retry_count;
        u8                      max_cm_retries;
        u8                      srq;
+       struct rdma_ucm_ece     ece;
 };
 
 /**
@@ -392,6 +397,7 @@ struct ib_cm_rep_param {
        u8              flow_control;
        u8              rnr_retry_count;
        u8              srq;
+       struct rdma_ucm_ece ece;
 };
 
 /**
@@ -546,6 +552,7 @@ struct ib_cm_sidr_rep_param {
        u8                      info_length;
        const void              *private_data;
        u8                      private_data_len;
+       struct rdma_ucm_ece     ece;
 };
 
 /**