On Mon, Jul 27, 2020 at 10:32:03PM +0000, Keller, Jacob E wrote: > > -----Original Message----- > > From: Michal Kubecek <mkube...@suse.cz> > > Sent: Monday, July 27, 2020 3:27 PM > > To: Andrew Lunn <and...@lunn.ch> > > Cc: Keller, Jacob E <jacob.e.kel...@intel.com>; netdev@vger.kernel.org; > > Jamie > > Gloudon <jamie.glou...@gmx.fr> > > Subject: Re: [ethtool] ethtool: fix netlink bitmasks when sent as NOMASK > > > > On Tue, Jul 28, 2020 at 12:11:04AM +0200, Andrew Lunn wrote: > > > Hi Jacob > > > > > > This is close > > > > > > Netlink > > > Link partner advertised link modes: 10baseT/Half 10baseT/Full > > > 100baseT/Half 100baseT/Full > > > 1000baseT/Full > > > Link partner advertised pause frame use: No > > > Link partner advertised auto-negotiation: Yes > > > Link partner advertised FEC modes: No > > > > > > IOCTL > > > Link partner advertised link modes: 10baseT/Half 10baseT/Full > > > 100baseT/Half 100baseT/Full > > > 1000baseT/Full > > > Link partner advertised pause frame use: No > > > Link partner advertised auto-negotiation: Yes > > > Link partner advertised FEC modes: Not reported > > > > > > So just the FEC modes differ. > > > > This is a different issue, the last call to dump_link_modes() in > > dump_peer_modes() should be > > > > ret = dump_link_modes(nlctx, attr, false, LM_CLASS_FEC, > > > > (third parameter needs to be false, not true). > > > > Michal > > > > That's part of it, yea, but also it should use the string "Not > Reported" instead of "No" I think?
Right, both should be fixed. Michal > > > > > > > However, i don't think this was part of the original issue, so: > > > > > > Tested-by: Andrew Lunn <and...@lunn.ch> > > > > > > It would be nice to get the FEC modes fixed. > > > > > > Andrew