Thread (3 messages) 3 messages, 3 authors, 2026-03-25

Re: [PATCH net-next] net: ethtool: pass genl_info to the ethnl parse_request operation

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-03-24 03:00:07
Also in: lkml

On Mon, 23 Mar 2026 10:58:32 +0100 Maxime Chevallier wrote:
The .parse_request() ethnl operation extracts the relevant attributes
from the netlink request to populate the private req_info.

By passing genl_info as a parameter to this callback, we can use
the GENL_REQ_ATTR_CHECK() macro to check for missing mandatory
parameters.

This macro has the advantage of returning a better error explanation
through the netlink_ext_ack struct.

Convert the eeprom ethnl code to this macro, as it's the only command
yet that has mandatory request parameters.
Reviewed-by: Jakub Kicinski <kuba@kernel.org>

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