Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
With older ethtool version (<5.8) that is based on ioctl interface the advertised link modes are set to the supported link modes when only autoneg on is set without specifying speed, duplex or link modes.
This is not true for newer ethtool (>=v5.8) that just enable auto-negotiation but leaves advertised link modes untouched.
Version-Release number of selected component (if applicable):
ethtool-5.8-3.el8
How reproducible:
100% with mlxsw driver
Steps to Reproduce:
1. Enable auto-negotiation but limit advertised link modes
2. Check link status
3. Enable auto-negotiation (no limitation)
4. Check link status
Actual results:
1. Enable autoneg and limit advertised link modes to 10Gbit
[root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on speed 10000
2. Verify
[root@mlxsw-1 ~]# ethtool enp6s0np17
Settings for enp6s0np17:
...
Advertised link modes: 10000baseT/Full
10000baseKR/Full
10000baseR_FEC
10000baseCR/Full
10000baseSR/Full
10000baseLR/Full
10000baseER/Full
...
3. Enable autoneg without any limit
[root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on
4. Verify:
[root@mlxsw-1 ~]# ethtool enp6s0np17
Settings for enp6s0np17:
...
Advertised link modes: 10000baseT/Full
10000baseKR/Full
10000baseR_FEC
10000baseCR/Full
10000baseSR/Full
10000baseLR/Full
10000baseER/Full
...
Advertised link-modes are still limited ^^^^^^^^
Expected results:
1. Enable autoneg and limit advertised link modes to 10Gbit
[root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on speed 10000
2. Verify
[root@mlxsw-1 ~]# ethtool enp6s0np17
Settings for enp6s0np17:
...
Advertised link modes: 10000baseT/Full
10000baseKR/Full
10000baseR_FEC
10000baseCR/Full
10000baseSR/Full
10000baseLR/Full
10000baseER/Full
...
3. Enable autoneg without any limit
[root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on
4. Verify:
[root@mlxsw-1 ~]# ethtool enp6s0np17
Settings for enp6s0np17:
...
Advertised link modes: 1000baseT/Full
10000baseT/Full
1000baseKX/Full
10000baseKR/Full
10000baseR_FEC
40000baseKR4/Full
40000baseCR4/Full
40000baseSR4/Full
40000baseLR4/Full
25000baseCR/Full
25000baseKR/Full
25000baseSR/Full
50000baseCR2/Full
50000baseKR2/Full
100000baseKR4/Full
100000baseSR4/Full
100000baseCR4/Full
100000baseLR4_ER4/Full
50000baseSR2/Full
10000baseCR/Full
10000baseSR/Full
10000baseLR/Full
10000baseER/Full
...
All possible link modes are reported ^^^^^^^
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (ethtool bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHEA-2021:1576
Description of problem: With older ethtool version (<5.8) that is based on ioctl interface the advertised link modes are set to the supported link modes when only autoneg on is set without specifying speed, duplex or link modes. This is not true for newer ethtool (>=v5.8) that just enable auto-negotiation but leaves advertised link modes untouched. Version-Release number of selected component (if applicable): ethtool-5.8-3.el8 How reproducible: 100% with mlxsw driver Steps to Reproduce: 1. Enable auto-negotiation but limit advertised link modes 2. Check link status 3. Enable auto-negotiation (no limitation) 4. Check link status Actual results: 1. Enable autoneg and limit advertised link modes to 10Gbit [root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on speed 10000 2. Verify [root@mlxsw-1 ~]# ethtool enp6s0np17 Settings for enp6s0np17: ... Advertised link modes: 10000baseT/Full 10000baseKR/Full 10000baseR_FEC 10000baseCR/Full 10000baseSR/Full 10000baseLR/Full 10000baseER/Full ... 3. Enable autoneg without any limit [root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on 4. Verify: [root@mlxsw-1 ~]# ethtool enp6s0np17 Settings for enp6s0np17: ... Advertised link modes: 10000baseT/Full 10000baseKR/Full 10000baseR_FEC 10000baseCR/Full 10000baseSR/Full 10000baseLR/Full 10000baseER/Full ... Advertised link-modes are still limited ^^^^^^^^ Expected results: 1. Enable autoneg and limit advertised link modes to 10Gbit [root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on speed 10000 2. Verify [root@mlxsw-1 ~]# ethtool enp6s0np17 Settings for enp6s0np17: ... Advertised link modes: 10000baseT/Full 10000baseKR/Full 10000baseR_FEC 10000baseCR/Full 10000baseSR/Full 10000baseLR/Full 10000baseER/Full ... 3. Enable autoneg without any limit [root@mlxsw-1 ~]# ethtool -s enp6s0np17 autoneg on 4. Verify: [root@mlxsw-1 ~]# ethtool enp6s0np17 Settings for enp6s0np17: ... Advertised link modes: 1000baseT/Full 10000baseT/Full 1000baseKX/Full 10000baseKR/Full 10000baseR_FEC 40000baseKR4/Full 40000baseCR4/Full 40000baseSR4/Full 40000baseLR4/Full 25000baseCR/Full 25000baseKR/Full 25000baseSR/Full 50000baseCR2/Full 50000baseKR2/Full 100000baseKR4/Full 100000baseSR4/Full 100000baseCR4/Full 100000baseLR4_ER4/Full 50000baseSR2/Full 10000baseCR/Full 10000baseSR/Full 10000baseLR/Full 10000baseER/Full ... All possible link modes are reported ^^^^^^^