Thread (8 messages) flat view 8 messages, 4 authors, 2021-10-27

Re: Re: ixgbe: How to do this without a module parameter?

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-10-27 00:15:37

On Wed, Oct 27, 2021 at 01:50:52AM +0200, Robert Schlabbach wrote:
"Andrew Lunn" [off-list ref] wrote:
quoted
quoted
Personally I wouldn't mind having this (symbolic names) for all the
supported advertised modes; I also think it's a pain to have to go
lookup the bit values whenever I need to change this...
Something like this has been talked about before, but nobody ever
spent the time to do it. ethtool has all the needed strings, so it
should not be too hard to actually do for link modes.
It appears somebody already did, because I found that my Debian 11.1
server (with kernel version 5.14) actually takes this command:

$ ethtool -s eno3 advertise 2500baseT/Full on 5000baseT/Full on

The parsing seems to be implemented in the kernel, because when I copy
the binary over to my Ubuntu machine (with kernel version 4.15), any
attempt to specify a link mode name only yields:
Actually, it might not be. A kernel that old might not have netlink
ethtool, just the old ioctl interface. It could be the command line
parsing is dependent on which API is used to the kernel.

ethtool --debug 255 eno3

will show you the netlink messages going back and forth.

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help