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

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

From: Robert Schlabbach <hidden>
Date: 2021-10-26 23:51:03

"Andrew Lunn" [off-list ref] wrote:
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:

ethtool: bad command line argument(s)

Best regards,
-Robert Schlabbach
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help