OpenCloudOS-Kernel/net/ethtool
Jakub Kicinski b86b2c163b ethtool: mark netlink family as __ro_after_init
Like all genl families ethtool_genl_family needs to not
be a straight up constant, because it's modified/initialized
by genl_register_family(). After init, however, it's only
passed to genlmsg_put() & co. therefore we can mark it
as __ro_after_init.

Since genl_family structure contains function pointers
mark this as a fix.

Fixes: 2b4a8990b7 ("ethtool: introduce ethtool netlink interface")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: hongrongxuan <hongrongxuan@huawei.com>
2024-06-12 13:17:34 +08:00
..
Makefile ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
bitset.c ethtool: add ethnl_parse_bitset() helper 2024-06-12 13:17:17 +08:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2024-06-12 13:17:17 +08:00
channels.c ethtool: check if there is at least one channel for TX/RX in the core 2024-06-12 13:17:28 +08:00
coalesce.c ethtool: add COALESCE_NTF notification 2024-06-12 13:17:24 +08:00
common.c ethtool: Add 100base-FX link mode entries 2024-06-12 13:17:34 +08:00
common.h ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
debug.c ethtool: fix reference leak in some *_SET handlers 2024-06-12 13:17:22 +08:00
eee.c ethtool: add EEE_NTF notification 2024-06-12 13:17:26 +08:00
features.c ethtool: add FEATURES_NTF notification 2024-06-12 13:17:18 +08:00
ioctl.c ethtool: allow flow-type ether without IP protocol field 2024-06-12 13:17:33 +08:00
linkinfo.c ethtool: linkinfo: remove an unnecessary NULL check 2024-06-12 13:17:30 +08:00
linkmodes.c ethtool: Add 100base-FX link mode entries 2024-06-12 13:17:34 +08:00
linkstate.c ethtool: Add link extended state 2024-06-12 13:17:32 +08:00
netlink.c ethtool: mark netlink family as __ro_after_init 2024-06-12 13:17:34 +08:00
netlink.h ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
pause.c ethtool: add standard pause stats 2024-06-12 13:17:33 +08:00
privflags.c ethtool: fix reference leak in ethnl_set_privflags() 2024-06-12 13:17:23 +08:00
rings.c ethtool: add RINGS_NTF notification 2024-06-12 13:17:20 +08:00
strset.c ethtool: count header size in reply size estimate 2024-06-12 13:17:28 +08:00
tsinfo.c ethtool: provide timestamping information with TSINFO_GET request 2024-06-12 13:17:27 +08:00
wol.c ethtool: fix reference leak in some *_SET handlers 2024-06-12 13:17:22 +08:00