Skip to content

Commit dbabf68

Browse files
mikijoyjgunthorpe
authored andcommitted
IB/core: Add 2X port width
Add the new 2X port width that is part of IB spec 1.3 Signed-off-by: Michael Guralnik <michaelgur@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent 1e8f43b commit dbabf68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/rdma/ib_verbs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ enum ib_port_state {
434434

435435
enum ib_port_width {
436436
IB_WIDTH_1X = 1,
437+
IB_WIDTH_2X = 16,
437438
IB_WIDTH_4X = 2,
438439
IB_WIDTH_8X = 4,
439440
IB_WIDTH_12X = 8
@@ -443,6 +444,7 @@ static inline int ib_width_enum_to_int(enum ib_port_width width)
443444
{
444445
switch (width) {
445446
case IB_WIDTH_1X: return 1;
447+
case IB_WIDTH_2X: return 2;
446448
case IB_WIDTH_4X: return 4;
447449
case IB_WIDTH_8X: return 8;
448450
case IB_WIDTH_12X: return 12;

0 commit comments

Comments
 (0)