[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3d6364f3-a5c6-4c96-b958-0036da349754@ans.pl>
Date: Tue, 21 May 2024 00:38:02 -0700
From: Krzysztof Olędzki <ole@....pl>
To: Michal Kubecek <mkubecek@...e.cz>
Cc: Moshe Shemesh <moshe@...dia.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: 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?
On 21.05.2024 at 00:34, Michal Kubecek wrote:
> On Tue, May 21, 2024 at 12:02:47AM -0700, Krzysztof Olędzki wrote:
>> # ./ethtool --version
>> ethtool version 6.7
>>
>> # ./ethtool --debug 3 -m eth3
> [...]
>> 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
>
> Can you do it with "--debug 0x12" or "--debug 0x1e"? It would tell us
> which request failed and that might give some hint where does this
> EINVAL come from.
Sure,
# ./ethtool --debug 0x12 -m eth3
sending genetlink packet (32 bytes):
msg length 32 genl-ctrl
CTRL_CMD_GETFAMILY
CTRL_ATTR_FAMILY_NAME = "ethtool"
received genetlink packet (956 bytes):
msg length 956 genl-ctrl
CTRL_CMD_NEWFAMILY
CTRL_ATTR_FAMILY_NAME = "ethtool"
CTRL_ATTR_FAMILY_ID = 21
CTRL_ATTR_VERSION = 1
CTRL_ATTR_HDRSIZE = 0
CTRL_ATTR_MAXATTR = 0
CTRL_ATTR_OPS
[1]
CTRL_ATTR_OP_ID = 1
CTRL_ATTR_OP_FLAGS = 0x0000000e
[2]
CTRL_ATTR_OP_ID = 2
CTRL_ATTR_OP_FLAGS = 0x0000000e
[3]
CTRL_ATTR_OP_ID = 3
CTRL_ATTR_OP_FLAGS = 0x0000001a
[4]
CTRL_ATTR_OP_ID = 4
CTRL_ATTR_OP_FLAGS = 0x0000000e
[5]
CTRL_ATTR_OP_ID = 5
CTRL_ATTR_OP_FLAGS = 0x0000001a
[6]
CTRL_ATTR_OP_ID = 6
CTRL_ATTR_OP_FLAGS = 0x0000000e
[7]
CTRL_ATTR_OP_ID = 7
CTRL_ATTR_OP_FLAGS = 0x0000000e
[8]
CTRL_ATTR_OP_ID = 8
CTRL_ATTR_OP_FLAGS = 0x0000001a
[9]
CTRL_ATTR_OP_ID = 9
CTRL_ATTR_OP_FLAGS = 0x0000001e
[10]
CTRL_ATTR_OP_ID = 10
CTRL_ATTR_OP_FLAGS = 0x0000001a
[11]
CTRL_ATTR_OP_ID = 11
CTRL_ATTR_OP_FLAGS = 0x0000000e
[12]
CTRL_ATTR_OP_ID = 12
CTRL_ATTR_OP_FLAGS = 0x0000001a
[13]
CTRL_ATTR_OP_ID = 13
CTRL_ATTR_OP_FLAGS = 0x0000000e
[14]
CTRL_ATTR_OP_ID = 14
CTRL_ATTR_OP_FLAGS = 0x0000001a
[15]
CTRL_ATTR_OP_ID = 15
CTRL_ATTR_OP_FLAGS = 0x0000000e
[16]
CTRL_ATTR_OP_ID = 16
CTRL_ATTR_OP_FLAGS = 0x0000001a
[17]
CTRL_ATTR_OP_ID = 17
CTRL_ATTR_OP_FLAGS = 0x0000000e
[18]
CTRL_ATTR_OP_ID = 18
CTRL_ATTR_OP_FLAGS = 0x0000001a
[19]
CTRL_ATTR_OP_ID = 19
CTRL_ATTR_OP_FLAGS = 0x0000000e
[20]
CTRL_ATTR_OP_ID = 20
CTRL_ATTR_OP_FLAGS = 0x0000001a
[21]
CTRL_ATTR_OP_ID = 21
CTRL_ATTR_OP_FLAGS = 0x0000000e
[22]
CTRL_ATTR_OP_ID = 22
CTRL_ATTR_OP_FLAGS = 0x0000001a
[23]
CTRL_ATTR_OP_ID = 23
CTRL_ATTR_OP_FLAGS = 0x0000000e
[24]
CTRL_ATTR_OP_ID = 24
CTRL_ATTR_OP_FLAGS = 0x0000001a
[25]
CTRL_ATTR_OP_ID = 25
CTRL_ATTR_OP_FLAGS = 0x0000000e
[26]
CTRL_ATTR_OP_ID = 26
CTRL_ATTR_OP_FLAGS = 0x0000001a
[27]
CTRL_ATTR_OP_ID = 27
CTRL_ATTR_OP_FLAGS = 0x0000001a
[28]
CTRL_ATTR_OP_ID = 28
CTRL_ATTR_OP_FLAGS = 0x0000000e
[29]
CTRL_ATTR_OP_ID = 29
CTRL_ATTR_OP_FLAGS = 0x0000000e
[30]
CTRL_ATTR_OP_ID = 30
CTRL_ATTR_OP_FLAGS = 0x0000001a
[31]
CTRL_ATTR_OP_ID = 31
CTRL_ATTR_OP_FLAGS = 0x0000001e
[32]
CTRL_ATTR_OP_ID = 32
CTRL_ATTR_OP_FLAGS = 0x0000000e
[33]
CTRL_ATTR_OP_ID = 33
CTRL_ATTR_OP_FLAGS = 0x0000000e
[34]
CTRL_ATTR_OP_ID = 34
CTRL_ATTR_OP_FLAGS = 0x0000000e
[35]
CTRL_ATTR_OP_ID = 35
CTRL_ATTR_OP_FLAGS = 0x0000001a
[36]
CTRL_ATTR_OP_ID = 36
CTRL_ATTR_OP_FLAGS = 0x0000000e
[37]
CTRL_ATTR_OP_ID = 37
CTRL_ATTR_OP_FLAGS = 0x0000001a
[38]
CTRL_ATTR_OP_ID = 38
CTRL_ATTR_OP_FLAGS = 0x0000000a
[39]
CTRL_ATTR_OP_ID = 39
CTRL_ATTR_OP_FLAGS = 0x0000000e
[40]
CTRL_ATTR_OP_ID = 40
CTRL_ATTR_OP_FLAGS = 0x0000001a
[41]
CTRL_ATTR_OP_ID = 41
CTRL_ATTR_OP_FLAGS = 0x0000000e
[42]
CTRL_ATTR_OP_ID = 42
CTRL_ATTR_OP_FLAGS = 0x0000000e
[43]
CTRL_ATTR_OP_ID = 43
CTRL_ATTR_OP_FLAGS = 0x0000001a
CTRL_ATTR_MCAST_GROUPS
[1]
CTRL_ATTR_MCAST_GRP_ID = 5
CTRL_ATTR_MCAST_GRP_NAME = "monitor"
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
ETHTOOL_MSG_MODULE_EEPROM_GET
ETHTOOL_A_MODULE_EEPROM_HEADER
ETHTOOL_A_HEADER_DEV_NAME = "eth3"
ETHTOOL_A_MODULE_EEPROM_LENGTH = 128
ETHTOOL_A_MODULE_EEPROM_OFFSET = 0
ETHTOOL_A_MODULE_EEPROM_PAGE = 0
ETHTOOL_A_MODULE_EEPROM_BANK = 0
ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS = 80
received genetlink packet (176 bytes):
msg length 176 ethool ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
ETHTOOL_A_MODULE_EEPROM_HEADER
ETHTOOL_A_HEADER_DEV_INDEX = 7
ETHTOOL_A_HEADER_DEV_NAME = "eth3"
ETHTOOL_A_MODULE_EEPROM_DATA =
0d 00 02 00 00 00 00 00 00 05 00 00 00 00 00 00
00 00 00 00 00 00 27 71 00 00 80 0e 00 00 00 00
00 00 16 48 00 00 00 00 00 00 0c f1 00 00 00 00
00 00 1f 93 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 03 01 00 00 00 00 00 00 00 00 00
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
ETHTOOL_MSG_MODULE_EEPROM_GET
ETHTOOL_A_MODULE_EEPROM_HEADER
ETHTOOL_A_HEADER_DEV_NAME = "eth3"
ETHTOOL_A_MODULE_EEPROM_LENGTH = 128
ETHTOOL_A_MODULE_EEPROM_OFFSET = 128
ETHTOOL_A_MODULE_EEPROM_PAGE = 0
ETHTOOL_A_MODULE_EEPROM_BANK = 0
ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS = 80
received genetlink packet (176 bytes):
msg length 176 ethool ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY
ETHTOOL_A_MODULE_EEPROM_HEADER
ETHTOOL_A_HEADER_DEV_INDEX = 7
ETHTOOL_A_HEADER_DEV_NAME = "eth3"
ETHTOOL_A_MODULE_EEPROM_DATA =
0d 00 0c 00 00 30 00 00 00 00 00 01 00 00 00 00
00 00 00 00 41 56 41 47 4f 20 20 20 20 20 20 20
20 20 20 20 00 00 17 6a 33 33 32 2d 30 30 33 33
35 20 20 20 20 20 20 20 41 30 42 68 07 d0 46 71
00 00 0f de 51 44 32 35 31 33 37 30 20 20 20 20
20 20 20 20 31 33 30 36 32 31 20 20 08 00 00 29
00 4e 54 41 50 03 3b 06 00 3b 06 00 3b 06 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f9
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
ETHTOOL_MSG_MODULE_EEPROM_GET
ETHTOOL_A_MODULE_EEPROM_HEADER
ETHTOOL_A_HEADER_DEV_NAME = "eth3"
ETHTOOL_A_MODULE_EEPROM_LENGTH = 128
ETHTOOL_A_MODULE_EEPROM_OFFSET = 128
ETHTOOL_A_MODULE_EEPROM_PAGE = 3
ETHTOOL_A_MODULE_EEPROM_BANK = 0
ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS = 80
received genetlink packet (96 bytes):
msg length 96 error errno=-22
netlink error: Invalid argument
offending message:
ETHTOOL_MSG_MODULE_EEPROM_GET
ETHTOOL_A_MODULE_EEPROM_HEADER
ETHTOOL_A_HEADER_DEV_NAME = "eth3"
ETHTOOL_A_MODULE_EEPROM_LENGTH = 128
ETHTOOL_A_MODULE_EEPROM_OFFSET = 128
ETHTOOL_A_MODULE_EEPROM_PAGE = 3
ETHTOOL_A_MODULE_EEPROM_BANK = 0
ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS = 80
Krzysztof
Powered by blists - more mailing lists