diff options
author | Marcel Apfelbaum <marcela@dev.mellanox.co.il> | 2011-10-05 07:21:47 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-11 14:53:47 -0400 |
commit | 71eeba161d7611238ecb6f525a82325aa35339f0 (patch) | |
tree | 97e4a2b1cf8754029ef0755cd67d1502659e2af1 /include/rdma | |
parent | 976d167615b64e14bc1491ca51d424e2ba9a5e84 (diff) |
IB: Add new InfiniBand link speeds
Introduce support for the following extended speeds:
FDR-10: a Mellanox proprietary link speed which is 10.3125 Gbps with
64b/66b encoding rather than 8b/10b encoding.
FDR: IBA extended speed 14.0625 Gbps.
EDR: IBA extended speed 25.78125 Gbps.
Signed-off-by: Marcel Apfelbaum <marcela@dev.mellanox.co.il>
Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 228be3e220d9..97c98c0d89b1 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -207,6 +207,7 @@ enum ib_port_cap_flags { | |||
207 | IB_PORT_SM_DISABLED = 1 << 10, | 207 | IB_PORT_SM_DISABLED = 1 << 10, |
208 | IB_PORT_SYS_IMAGE_GUID_SUP = 1 << 11, | 208 | IB_PORT_SYS_IMAGE_GUID_SUP = 1 << 11, |
209 | IB_PORT_PKEY_SW_EXT_PORT_TRAP_SUP = 1 << 12, | 209 | IB_PORT_PKEY_SW_EXT_PORT_TRAP_SUP = 1 << 12, |
210 | IB_PORT_EXTENDED_SPEEDS_SUP = 1 << 14, | ||
210 | IB_PORT_CM_SUP = 1 << 16, | 211 | IB_PORT_CM_SUP = 1 << 16, |
211 | IB_PORT_SNMP_TUNNEL_SUP = 1 << 17, | 212 | IB_PORT_SNMP_TUNNEL_SUP = 1 << 17, |
212 | IB_PORT_REINIT_SUP = 1 << 18, | 213 | IB_PORT_REINIT_SUP = 1 << 18, |
@@ -415,7 +416,15 @@ enum ib_rate { | |||
415 | IB_RATE_40_GBPS = 7, | 416 | IB_RATE_40_GBPS = 7, |
416 | IB_RATE_60_GBPS = 8, | 417 | IB_RATE_60_GBPS = 8, |
417 | IB_RATE_80_GBPS = 9, | 418 | IB_RATE_80_GBPS = 9, |
418 | IB_RATE_120_GBPS = 10 | 419 | IB_RATE_120_GBPS = 10, |
420 | IB_RATE_14_GBPS = 11, | ||
421 | IB_RATE_56_GBPS = 12, | ||
422 | IB_RATE_112_GBPS = 13, | ||
423 | IB_RATE_168_GBPS = 14, | ||
424 | IB_RATE_25_GBPS = 15, | ||
425 | IB_RATE_100_GBPS = 16, | ||
426 | IB_RATE_200_GBPS = 17, | ||
427 | IB_RATE_300_GBPS = 18 | ||
419 | }; | 428 | }; |
420 | 429 | ||
421 | /** | 430 | /** |
@@ -427,6 +436,13 @@ enum ib_rate { | |||
427 | int ib_rate_to_mult(enum ib_rate rate) __attribute_const__; | 436 | int ib_rate_to_mult(enum ib_rate rate) __attribute_const__; |
428 | 437 | ||
429 | /** | 438 | /** |
439 | * ib_rate_to_mbps - Convert the IB rate enum to Mbps. | ||
440 | * For example, IB_RATE_2_5_GBPS will be converted to 2500. | ||
441 | * @rate: rate to convert. | ||
442 | */ | ||
443 | int ib_rate_to_mbps(enum ib_rate rate) __attribute_const__; | ||
444 | |||
445 | /** | ||
430 | * mult_to_ib_rate - Convert a multiple of 2.5 Gbit/sec to an IB rate | 446 | * mult_to_ib_rate - Convert a multiple of 2.5 Gbit/sec to an IB rate |
431 | * enum. | 447 | * enum. |
432 | * @mult: multiple to convert. | 448 | * @mult: multiple to convert. |