From: Andrew Lunn <andrew@lunn.ch>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Ian MacDonald <ian@netstatz.com>,
Mika Westerberg <westeri@kernel.org>,
Yehezkel Bernat <YehezkelShB@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
1121032@bugs.debian.org
Subject: Re: net: thunderbolt: missing ndo_set_mac_address breaks 802.3ad bonding
Date: Thu, 27 Nov 2025 19:59:52 +0100 [thread overview]
Message-ID: <f3c5586c-3d48-4748-babd-5e2a4753a03e@lunn.ch> (raw)
In-Reply-To: <20251127053336.GI323117@black.igk.intel.com>
> I see. Yeah for speed we need to do something more than use the hard-coded
> values because it varies depending on whether we have lane bonding (not the
> same bonding you are doing) enabled and also how the link trained.
FYI: In theory, you don't need to keep to the speeds defined in the
ethtool header:
https://elixir.bootlin.com/linux/v6.17.9/source/include/uapi/linux/ethtool.h#L2177
However, ethtool might report a warning it does not know how to
convert to a nice looking number. So if you only have a small number
of possible speeds, please consider extending the list in ethtool, and
phy_speed_to_str().
> > +{
> > + /* ThunderboltIP is a software-only full-duplex network tunnel.
> > + * We report fixed link settings to satisfy bonding (802.3ad)
> > + * requirements for LACP port key calculation. Speed is set to
> > + * 10Gbps as a conservative baseline.
> > + */
> > + ethtool_link_ksettings_zero_link_mode(cmd, supported);
> > + ethtool_link_ksettings_add_link_mode(cmd, supported, 10000baseT_Full);
> > +
> > + ethtool_link_ksettings_zero_link_mode(cmd, advertising);
> > + ethtool_link_ksettings_add_link_mode(cmd, advertising, 10000baseT_Full);
Are link modes needed by bonding? You technically don't have a baseT
link, its not four twisted pairs, RJ45 connectors etc. Also, since you
set autoneg to disabled, you are not advertising anything.
If the bond drive does not care, i would leave supported and
advertising empty.
Andrew
prev parent reply other threads:[~2025-11-27 18:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 20:59 Ian MacDonald
2025-11-21 6:08 ` Mika Westerberg
2025-11-21 8:11 ` Mika Westerberg
2025-11-21 16:50 ` Ian MacDonald
2025-11-26 8:16 ` Bug#1121032: " Salvatore Bonaccorso
2025-11-26 23:39 ` Ian MacDonald
2025-11-27 5:33 ` Mika Westerberg
2025-11-27 18:59 ` Andrew Lunn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f3c5586c-3d48-4748-babd-5e2a4753a03e@lunn.ch \
--to=andrew@lunn.ch \
--cc=1121032@bugs.debian.org \
--cc=YehezkelShB@gmail.com \
--cc=ian@netstatz.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=westeri@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®