@@ -128,14 +128,13 @@ mlxcx_speed_to_bits(mlxcx_eth_proto_t proto, mlxcx_ext_eth_proto_t ext_proto)
128128 case MLXCX_EXTPROTO_100GAUI_2_100GBASE_CR2_KR2 :
129129 case MLXCX_EXTPROTO_100GAUI_1_100GBASE_CR_KR :
130130 return (100ULL * GBITS );
131- #if 0 /* Not yet... */
132131 case MLXCX_EXTPROTO_200GAUI_4_200GBASE_CR4_KR4 :
133132 case MLXCX_EXTPROTO_200GAUI_2_200GBASE_CR2_KR2 :
133+ return (200ULL * GBITS );
134134 case MLXCX_EXTPROTO_400GAUI_8 :
135135 case MLXCX_EXTPROTO_400GAUI_4_400GBASE_CR4_KR4 :
136- /* Not yet supported... */
136+ return ( 400ULL * GBITS );
137137 break ;
138- #endif /* Not yet... */
139138 default :
140139 /*
141140 * There ARE legitimate single-bit values we don't support,
@@ -1359,6 +1358,18 @@ mlxcx_mac_propinfo(void *arg, const char *pr_name, mac_prop_id_t pr_num,
13591358 mac_prop_info_set_perm (prh , MAC_PROP_PERM_RW );
13601359 mac_prop_info_set_default_fec (prh , LINK_FEC_AUTO );
13611360 break ;
1361+ case MAC_PROP_ADV_400GFDX_CAP :
1362+ case MAC_PROP_EN_400GFDX_CAP :
1363+ mac_prop_info_set_perm (prh , MAC_PROP_PERM_READ );
1364+ mac_prop_info_set_default_uint8 (prh ,
1365+ (port -> mlp_ext_oper_proto & MLXCX_EXTPROTO_400G ) != 0 );
1366+ break ;
1367+ case MAC_PROP_ADV_200GFDX_CAP :
1368+ case MAC_PROP_EN_200GFDX_CAP :
1369+ mac_prop_info_set_perm (prh , MAC_PROP_PERM_READ );
1370+ mac_prop_info_set_default_uint8 (prh ,
1371+ (port -> mlp_ext_oper_proto & MLXCX_EXTPROTO_200G ) != 0 );
1372+ break ;
13621373 case MAC_PROP_ADV_100GFDX_CAP :
13631374 case MAC_PROP_EN_100GFDX_CAP :
13641375 mac_prop_info_set_perm (prh , MAC_PROP_PERM_READ );
0 commit comments