diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-05-31 15:57:48 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2019-06-14 14:29:16 -0400 |
commit | 2bce6d9cb08eb05d32f5aa1a8b938e18061a55a2 (patch) | |
tree | 0006a2e221b4a10deb70c1957d535bd3ed1f1ba0 | |
parent | 67ffbf5a763fdb96c2a5b4c6a589e57923c02760 (diff) | |
download | ethtool-2bce6d9cb08eb05d32f5aa1a8b938e18061a55a2.tar.gz |
ethtool: Add 100BaseT1 and 1000BaseT1 link modes
The kernel can now indicate if the PHY supports operating over a
single pair at 100Mbps or 1000Mbps.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | ethtool.8.in | 2 | ||||
-rw-r--r-- | ethtool.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ethtool.8.in b/ethtool.8.in index 430d11b..6af6345 100644 --- a/ethtool.8.in +++ b/ethtool.8.in @@ -639,8 +639,10 @@ lB l lB. 0x002 10baseT Full 0x004 100baseT Half 0x008 100baseT Full +0x80000000000000000 100baseT1 Full 0x010 1000baseT Half (not supported by IEEE standards) 0x020 1000baseT Full +0x100000000000000000 1000baseT1 Full 0x20000 1000baseKX Full 0x20000000000 1000baseX Full 0x800000000000 2500baseT Full @@ -545,6 +545,8 @@ static void init_global_link_mode_masks(void) ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT, ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT, ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT, + ETHTOOL_LINK_MODE_100baseT1_Full_BIT, + ETHTOOL_LINK_MODE_1000baseT1_Full_BIT, }; static const enum ethtool_link_mode_bit_indices additional_advertised_flags_bits[] = { @@ -634,10 +636,14 @@ static void dump_link_caps(const char *prefix, const char *an_prefix, "100baseT/Half" }, { 1, ETHTOOL_LINK_MODE_100baseT_Full_BIT, "100baseT/Full" }, + { 0, ETHTOOL_LINK_MODE_100baseT1_Full_BIT, + "100baseT1/Full" }, { 0, ETHTOOL_LINK_MODE_1000baseT_Half_BIT, "1000baseT/Half" }, { 1, ETHTOOL_LINK_MODE_1000baseT_Full_BIT, "1000baseT/Full" }, + { 0, ETHTOOL_LINK_MODE_1000baseT1_Full_BIT, + "1000baseT1/Full" }, { 0, ETHTOOL_LINK_MODE_1000baseKX_Full_BIT, "1000baseKX/Full" }, { 0, ETHTOOL_LINK_MODE_2500baseX_Full_BIT, |