Skip to contentSkip to conversation

ethtool: add 10000baseR_FEC link mode name

PATCH RESEND Applied Michal Kubecek 2 participants 2 messages Feb 27, 2019 – Mar 14, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ethtool: add 10000baseR_FEC link mode name

ETHTOOL_LINK_MODE_10000baseR_FEC_BIT link mode is listed in ethtool_link_mode_bit_indices array but doesn't have its name assigned in the table in dump_link_caps() (so that it's not shown in "ethtool <dev>" output) and is not listed in the manual page. Add it to both.

---
 ethtool.8.in | 1 +
 ethtool.c    | 2 ++
 2 files changed, 3 insertions(+)
ethtool.8.in +1 -0
index 5a26cff5fb33..3d288eaadf23 100644
@@ -633,6 +633,7 @@ lB	l	lB.
 0x1000	10000baseT Full
 0x40000	10000baseKX4 Full
 0x80000	10000baseKR Full
+0x100000	10000baseR_FEC
 0x40000000000	10000baseCR  Full
 0x80000000000	10000baseSR  Full
 0x100000000000	10000baseLR  Full
ethtool.c +2 -0
index fb4c0886ca84..b6a1eaa383a3 100644
@@ -633,6 +633,8 @@ static void dump_link_caps(const char *prefix, const char *an_prefix,
 		  "10000baseKX4/Full" },
 		{ 0, ETHTOOL_LINK_MODE_10000baseKR_Full_BIT,
 		  "10000baseKR/Full" },
+		{ 0, ETHTOOL_LINK_MODE_10000baseR_FEC_BIT,
+		  "10000baseR_FEC" },
 		{ 0, ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT,
 		  "20000baseMLD2/Full" },
 		{ 0, ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT,
Signature · 1 line
2.20.1
#1 lore raw
Quoted 6 lines · Michal Kubecek

ETHTOOL_LINK_MODE_10000baseR_FEC_BIT link mode is listed in ethtool_link_mode_bit_indices array but doesn't have its name assigned in the table in dump_link_caps() (so that it's not shown in "ethtool <dev>" output) and is not listed in the manual page. Add it to both.

Queued for next release -- thanks!

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.