summaryrefslogtreecommitdiff
path: root/net/ethtool/common.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-06-26 01:24:16 +0300
committerJakub Kicinski <kuba@kernel.org>2025-06-26 01:24:16 +0300
commitb48d353d24d92dce2ea31aa248e2584980f7c989 (patch)
treeccb27e717ac50dc35203087634a6a1352cb61a5b /net/ethtool/common.h
parentbfb4fb77f9a8ce33ce357224569eae5564eec573 (diff)
parent4d13c6c449af374fbcd0580764a216668d970d26 (diff)
downloadlinux-b48d353d24d92dce2ea31aa248e2584980f7c989.tar.xz
Merge branch 'net-ethtool-rss-add-notifications'
Jakub Kicinski says: ==================== net: ethtool: rss: add notifications Next step on the path to moving RSS config to Netlink. With the refactoring of the driver-facing API for ETHTOOL_GRXFH/ETHTOOL_SRXFH out of the way we can move on to more interesting work. Add Netlink notifications for changes in RSS configuration. As a reminder (part) of rss-get was introduced in previous releases when input-xfrm (symmetric hashing) was added. rss-set isn't implemented, yet, but we can implement rss-ntf and hook it into the changes done via the IOCTL path (same as other ethtool-nl notifications do). Most of the series is concerned with passing arguments to notifications. So far none of the notifications needed to be parametrized, but RSS can have multiple contexts per device, and since GET operates on a single context at a time, the notification needs to also be scoped to a context. Patches 2-5 add support for passing arguments to notifications thru ethtool-nl generic infra. The notification handling itself is pretty trivial, it's mostly hooking in the right entries into the ethool-nl op tables. v1: https://lore.kernel.org/20250621171944.2619249-1-kuba@kernel.org ==================== Link: https://patch.msgid.link/20250623231720.3124717-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ethtool/common.h')
-rw-r--r--net/ethtool/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ethtool/common.h b/net/ethtool/common.h
index b4683d286a5a..c41db1595621 100644
--- a/net/ethtool/common.h
+++ b/net/ethtool/common.h
@@ -74,4 +74,12 @@ int ethtool_get_module_eeprom_call(struct net_device *dev,
bool __ethtool_dev_mm_supported(struct net_device *dev);
+#if IS_ENABLED(CONFIG_ETHTOOL_NETLINK)
+void ethtool_rss_notify(struct net_device *dev, u32 rss_context);
+#else
+static inline void ethtool_rss_notify(struct net_device *dev, u32 rss_context)
+{
+}
+#endif
+
#endif /* _ETHTOOL_COMMON_H */