Skip to contentSkip to conversation

add 10baseT1L mode to link mode tables

PATCH Applied Michal Kubecek 2 participants 2 messages Oct 24, 2022 – Nov 1, 2022

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

PATCH 1/1 add 10baseT1L mode to link mode tables

Add recently added 10baseT1L/Full link mode to man page and ioctl and fallback code paths.

---
 ethtool.8.in       | 1 +
 ethtool.c          | 3 +++
 netlink/settings.c | 1 +
 3 files changed, 5 insertions(+)
ethtool.8.in +1 -0
index 1c0e2346f3a1..dee39ddb434a 100644
@@ -776,6 +776,7 @@ nokeep;
 lB	l	lB.
 0x001	10baseT Half
 0x002	10baseT Full
+0x100000000000000000000000	10baseT1L Full
 0x004	100baseT Half
 0x008	100baseT Full
 0x80000000000000000	100baseT1 Full
ethtool.c +3 -0
index 7b400da32c6f..5d4930252c9b 100644
@@ -475,6 +475,7 @@ static void init_global_link_mode_masks(void)
 		ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT,
 		ETHTOOL_LINK_MODE_100baseFX_Half_BIT,
 		ETHTOOL_LINK_MODE_100baseFX_Full_BIT,
+		ETHTOOL_LINK_MODE_10baseT1L_Full_BIT,
 	};
 	static const enum ethtool_link_mode_bit_indices
 		additional_advertised_flags_bits[] = {
@@ -715,6 +716,8 @@ static void dump_link_caps(const char *prefix, const char *an_prefix,
 		  "100baseFX/Half" },
 		{ 1, ETHTOOL_LINK_MODE_100baseFX_Full_BIT,
 		  "100baseFX/Full" },
+		{ 0, ETHTOOL_LINK_MODE_10baseT1L_Full_BIT,
+		  "10baseT1L/Full" },
 	};
 	int indent;
 	int did1, new_line_pend;
netlink/settings.c +1 -0
index dda4ac9bcf35..ea86e365383b 100644
@@ -164,6 +164,7 @@ static const struct link_mode_info link_modes[] = {
 	[ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT]	= __REAL(400000),
 	[ETHTOOL_LINK_MODE_100baseFX_Half_BIT]		= __HALF_DUPLEX(100),
 	[ETHTOOL_LINK_MODE_100baseFX_Full_BIT]		= __REAL(100),
+	[ETHTOOL_LINK_MODE_10baseT1L_Full_BIT]		= __REAL(10),
 };
 const unsigned int link_modes_count = ARRAY_SIZE(link_modes);
 
Signature · 1 line
2.38.0
#1 lore raw
This patch was applied to ethtool/ethtool.git (master) by Michal Kubecek <[email protected]>:

Hello:

This patch was applied to ethtool/ethtool.git (master) by Michal Kubecek <[email protected]>:

Quoted 9 lines · On Mon, 24 Oct 2022 17:28:55 +0200 (CEST) you wrote:

Add recently added 10baseT1L/Full link mode to man page and ioctl and fallback code paths.

---
 ethtool.8.in       | 1 +
 ethtool.c          | 3 +++
 netlink/settings.c | 1 +
 3 files changed, 5 insertions(+)

Here is the summary with links:
- [ethtool] add 10baseT1L mode to link mode tables

    https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=1b7d16496cc8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html