diff options
-rw-r--r-- | net/ethtool/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ethtool/common.c b/net/ethtool/common.c index 07032babd1b6..5f714bbbef19 100644 --- a/net/ethtool/common.c +++ b/net/ethtool/common.c @@ -654,6 +654,8 @@ int ethtool_check_ops(const struct ethtool_ops *ops) { if (WARN_ON(ops->set_coalesce && !ops->supported_coalesce_params)) return -EINVAL; + if (WARN_ON(ops->rxfh_max_num_contexts == 1)) + return -EINVAL; /* NOTE: sufficiently insane drivers may swap ethtool_ops at runtime, * the fact that ops are checked at registration time does not * mean the ops attached to a netdev later on are sane. |