IB_MTU_256
case IB_MTU_256:
return IB_MTU_256;
attr->path_mtu = IB_MTU_256;
props->active_mtu = mtu ? min(props->max_mtu, mtu) : IB_MTU_256;
attr->path_mtu < IB_MTU_256 || attr->path_mtu > active_mtu) {
props->active_mtu = IB_MTU_256;
props->active_mtu = tmp ? min(props->max_mtu, tmp) : IB_MTU_256;
if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_4096) {
MLX5_SET(qpc, qpc, mtu, IB_MTU_256);
if (attr->path_mtu < IB_MTU_256 ||
if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_2048) {
return IB_MTU_256;
if (attr->path_mtu < IB_MTU_256 ||
port->attr.active_mtu = IB_MTU_256;
port->mtu_cap = ib_mtu_enum_to_int(IB_MTU_256);
mtu = mtu ? min_t(enum ib_mtu, mtu, IB_MTU_4096) : IB_MTU_256;
return IB_MTU_256;
case 256: return IB_MTU_256;
case IB_MTU_256: return 256;
case IB_MTU_256:
else if (mtu >= ib_mtu_enum_to_int(IB_MTU_256))
return IB_MTU_256;
case IB_MTU_256: return 256;
return IB_MTU_256;