diff options
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_mad.h | 9 | ||||
-rw-r--r-- | include/rdma/ib_verbs.h | 11 |
2 files changed, 19 insertions, 1 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index d3b9401b77b0..b513f57e1725 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h | |||
@@ -77,6 +77,15 @@ | |||
77 | 77 | ||
78 | #define IB_MGMT_MAX_METHODS 128 | 78 | #define IB_MGMT_MAX_METHODS 128 |
79 | 79 | ||
80 | /* MAD Status field bit masks */ | ||
81 | #define IB_MGMT_MAD_STATUS_SUCCESS 0x0000 | ||
82 | #define IB_MGMT_MAD_STATUS_BUSY 0x0001 | ||
83 | #define IB_MGMT_MAD_STATUS_REDIRECT_REQD 0x0002 | ||
84 | #define IB_MGMT_MAD_STATUS_BAD_VERSION 0x0004 | ||
85 | #define IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD 0x0008 | ||
86 | #define IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB 0x000c | ||
87 | #define IB_MGMT_MAD_STATUS_INVALID_ATTRIB_VALUE 0x001c | ||
88 | |||
80 | /* RMPP information */ | 89 | /* RMPP information */ |
81 | #define IB_MGMT_RMPP_VERSION 1 | 90 | #define IB_MGMT_RMPP_VERSION 1 |
82 | 91 | ||
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index bf5daafe8ecc..c3cca5a4dacd 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -239,6 +239,15 @@ static inline int ib_width_enum_to_int(enum ib_port_width width) | |||
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||
242 | enum ib_port_speed { | ||
243 | IB_SPEED_SDR = 1, | ||
244 | IB_SPEED_DDR = 2, | ||
245 | IB_SPEED_QDR = 4, | ||
246 | IB_SPEED_FDR10 = 8, | ||
247 | IB_SPEED_FDR = 16, | ||
248 | IB_SPEED_EDR = 32 | ||
249 | }; | ||
250 | |||
242 | struct ib_protocol_stats { | 251 | struct ib_protocol_stats { |
243 | /* TBD... */ | 252 | /* TBD... */ |
244 | }; | 253 | }; |
@@ -509,6 +518,7 @@ enum ib_wc_flags { | |||
509 | IB_WC_GRH = 1, | 518 | IB_WC_GRH = 1, |
510 | IB_WC_WITH_IMM = (1<<1), | 519 | IB_WC_WITH_IMM = (1<<1), |
511 | IB_WC_WITH_INVALIDATE = (1<<2), | 520 | IB_WC_WITH_INVALIDATE = (1<<2), |
521 | IB_WC_IP_CSUM_OK = (1<<3), | ||
512 | }; | 522 | }; |
513 | 523 | ||
514 | struct ib_wc { | 524 | struct ib_wc { |
@@ -529,7 +539,6 @@ struct ib_wc { | |||
529 | u8 sl; | 539 | u8 sl; |
530 | u8 dlid_path_bits; | 540 | u8 dlid_path_bits; |
531 | u8 port_num; /* valid only for DR SMPs on switches */ | 541 | u8 port_num; /* valid only for DR SMPs on switches */ |
532 | int csum_ok; | ||
533 | }; | 542 | }; |
534 | 543 | ||
535 | enum ib_cq_notify_flags { | 544 | enum ib_cq_notify_flags { |