[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221024152855.D0D6E604C3@lion.mk-sys.cz>
Date: Mon, 24 Oct 2022 17:28:55 +0200 (CEST)
From: Michal Kubecek <mkubecek@...e.cz>
To: netdev@...r.kernel.org
Cc: Xose Vazquez Perez <xose.vazquez@...il.com>,
Alexandru Tachici <alexandru.tachici@...log.com>
Subject: [PATCH ethtool] add 10baseT1L mode to link mode tables
Add recently added 10baseT1L/Full link mode to man page and ioctl and
fallback code paths.
Signed-off-by: Michal Kubecek <mkubecek@...e.cz>
---
ethtool.8.in | 1 +
ethtool.c | 3 +++
netlink/settings.c | 1 +
3 files changed, 5 insertions(+)
diff --git a/ethtool.8.in b/ethtool.8.in
index 1c0e2346f3a1..dee39ddb434a 100644
--- a/ethtool.8.in
+++ b/ethtool.8.in
@@ -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
diff --git a/ethtool.c b/ethtool.c
index 7b400da32c6f..5d4930252c9b 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -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;
diff --git a/netlink/settings.c b/netlink/settings.c
index dda4ac9bcf35..ea86e365383b 100644
--- a/netlink/settings.c
+++ b/netlink/settings.c
@@ -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);
--
2.38.0
Powered by blists - more mailing lists