Re: [v2, net-next 09/12] bng_en: Add ethtool link settings and capabilities support

From: Andrew Lunn

Date: Wed Nov 19 2025 - 14:44:54 EST


> > > + if (link_info->support_auto_speeds || link_info->support_auto_speeds2 ||
> > > + link_info->support_pam4_auto_speeds)
> > > + linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT,
> > > + lk_ksettings->link_modes.supported);
> >
> > autoneg is more than speed. In fact, 1000BaseX only works are 1G, no
> > link speed negotiation, but you can negotiate pause. Do any of the
> > link modes you support work like this?
>
> All the speeds we support can be auto-negotiated.

If all the speeds you support can do autoneg, why do you need the if ()

Andrew