ethtool: add two new link modes

This commit is contained in:
Yu Watanabe 2020-12-03 11:23:50 +09:00
parent 89836c304b
commit 131e4deaf3
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ static const char* const ethtool_link_mode_bit_table[] = {
[ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT] = "400000baselr4-er4-fr4-full",
[ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT] = "400000basedr4-full",
[ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT] = "400000basecr4-full",
[ETHTOOL_LINK_MODE_100baseFX_Half_BIT] = "100basefx-half",
[ETHTOOL_LINK_MODE_100baseFX_Full_BIT] = "100basefx-full",
};
/* Make sure the array is large enough to fit all bits */
assert_cc((ELEMENTSOF(ethtool_link_mode_bit_table)-1) / 32 < N_ADVERTISE);