Files
Centos-kernel-stream-10/net/ethtool
Mohammad Heib f68b5fec9d net: ethtool: pass genl_info to the ethnl parse_request operation
JIRA: https://issues.redhat.com/browse/RHEL-167299

commit 10171b938330f6e625e7dc8dd24a15cc96218172
Author: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date:   Mon Mar 23 10:58:32 2026 +0100

    net: ethtool: pass genl_info to the ethnl parse_request operation

    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.

    Suggested-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
    Link: https://patch.msgid.link/20260323095833.136266-1-maxime.chevallier@bootlin.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Mohammad Heib <mheib@redhat.com>
2026-04-14 15:49:38 +03:00
..
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00
2026-04-14 15:49:38 +03:00