summaryrefslogtreecommitdiff
path: root/include/linux/ethtool.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-03-16 23:47:12 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-18 06:56:58 +0300
commit9000edb71ab29d184aa33f5a77fa6e52d8812bb9 (patch)
tree9640630ca6bd67eff03758b3a7dc6930b309b7b7 /include/linux/ethtool.h
parent329bab6ea945e5d14193e650d5a1283b6d2f6d29 (diff)
downloadlinux-9000edb71ab29d184aa33f5a77fa6e52d8812bb9.tar.xz
net: ethtool: require drivers to set supported_coalesce_params
Now that all in-tree drivers have been updated we can make the supported_coalesce_params mandatory. To save debugging time in case some driver was missed (or is out of tree) add a warning when netdev is registered with set_coalesce but without supported_coalesce_params. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index be355f37337d..c1d379bf6ee1 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -458,6 +458,8 @@ struct ethtool_ops {
struct ethtool_stats *, u64 *);
};
+int ethtool_check_ops(const struct ethtool_ops *ops);
+
struct ethtool_rx_flow_rule {
struct flow_rule *rule;
unsigned long priv[0];