diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-16 21:47:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-18 04:56:58 +0100 |
commit | 9000edb71ab29d184aa33f5a77fa6e52d8812bb9 (patch) | |
tree | 9640630ca6bd67eff03758b3a7dc6930b309b7b7 /net/ethtool/ioctl.c | |
parent | net: axienet: let core reject the unsupported coalescing parameters (diff) | |
download | linux-9000edb71ab29d184aa33f5a77fa6e52d8812bb9.tar.xz linux-9000edb71ab29d184aa33f5a77fa6e52d8812bb9.zip |
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 'net/ethtool/ioctl.c')
-rw-r--r-- | net/ethtool/ioctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c index 258840b19fb5..3852a58d7f95 100644 --- a/net/ethtool/ioctl.c +++ b/net/ethtool/ioctl.c @@ -1519,9 +1519,6 @@ ethtool_set_coalesce_supported(struct net_device *dev, u32 supported_params = dev->ethtool_ops->supported_coalesce_params; u32 nonzero_params = 0; - if (!supported_params) - return true; - if (coalesce->rx_coalesce_usecs) nonzero_params |= ETHTOOL_COALESCE_RX_USECS; if (coalesce->rx_max_coalesced_frames) |