Re: "netlink error: Invalid argument" with ethtool-5.13+ on recent kernels due to "ethtool: Add netlink handler for getmodule (-m)" - 25b64c66f58d3df0ad7272dda91c3ab06fe7a303, also no SFP-DOM support via netlink?
From: Krzysztof Olędzki <hidden>
Date: 2024-05-21 07:02:57
-vladyslavt@nvidia.com (User unknown). Hi Michal, On 20.05.2024 at 23:55, Michal Kubecek wrote:
On Mon, May 20, 2024 at 11:26:56PM -0700, Krzysztof Olędzki wrote:quoted
Hi, After upgrading from 5.4-stable to 6.6-stable I noticed that modern ethtool -m stopped working with ports where I have QSFP modules installed in my CX3 / CX3-Pro cards. Git bisect identified the following patch as being responsible for the issue: https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=25b64c66f58d3df0ad7272dda91c3ab06fe7a303Sounds like the issue that was fixed by commit 1a1dcfca4d67 ("ethtool: Fix SFF-8472 transceiver module identification"). Can you try ethtool version 6.7?
Yes, forgot to mention - this problem also exists in ethtool-6.7:
# ./ethtool --version
ethtool version 6.7
# ./ethtool --debug 3 -m eth3
sending genetlink packet (32 bytes):
msg length 32 genl-ctrl
received genetlink packet (956 bytes):
msg length 956 genl-ctrl
received genetlink packet (36 bytes):
msg length 36 error errno=0
sending genetlink packet (76 bytes):
msg length 76 ethool ETHTOOL_MSG_MODULE_EEPROM_GET
received genetlink packet (52 bytes):
msg length 52 ethool ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
received genetlink packet (36 bytes):
msg length 36 error errno=0
sending genetlink packet (76 bytes):
msg length 76 ethool ETHTOOL_MSG_MODULE_EEPROM_GET
received genetlink packet (176 bytes):
msg length 176 ethool ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
received genetlink packet (36 bytes):
msg length 36 error errno=0
sending genetlink packet (76 bytes):
msg length 76 ethool ETHTOOL_MSG_MODULE_EEPROM_GET
received genetlink packet (176 bytes):
msg length 176 ethool ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
received genetlink packet (36 bytes):
msg length 36 error errno=0
sending genetlink packet (76 bytes):
msg length 76 ethool ETHTOOL_MSG_MODULE_EEPROM_GET
received genetlink packet (96 bytes):
msg length 96 error errno=-22
netlink error: Invalid argument
Thanks,
Krzysztof