@@ -118,8 +118,10 @@ static const char *mtu_str(enum ibv_mtu max_mtu)
case IBV_MTU_256: return "256";
case IBV_MTU_512: return "512";
case IBV_MTU_1024: return "1024";
+ case IBV_MTU_1500: return "1500";
case IBV_MTU_2048: return "2048";
case IBV_MTU_4096: return "4096";
+ case IBV_MTU_9000: return "9000";
default: return "invalid MTU";
}
}
@@ -42,8 +42,10 @@ enum ibv_mtu pp_mtu_to_enum(int mtu)
case 256: return IBV_MTU_256;
case 512: return IBV_MTU_512;
case 1024: return IBV_MTU_1024;
+ case 1500: return IBV_MTU_1500;
case 2048: return IBV_MTU_2048;
case 4096: return IBV_MTU_4096;
+ case 9000: return IBV_MTU_9000;
default: return -1;
}
}
@@ -150,8 +150,10 @@ enum ibv_mtu {
IBV_MTU_256 = 1,
IBV_MTU_512 = 2,
IBV_MTU_1024 = 3,
- IBV_MTU_2048 = 4,
- IBV_MTU_4096 = 5
+ IBV_MTU_1500 = 4,
+ IBV_MTU_2048 = 5,
+ IBV_MTU_4096 = 6,
+ IBV_MTU_9000 = 7
};
enum ibv_port_state {