diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-11 23:32:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 19:32:36 +0100 |
commit | 194219a79259390dd7b69208c41f39d096139014 (patch) | |
tree | 5904987756595937b4d40ff101de6674a170c709 /drivers/net/ethernet/intel/fm10k | |
parent | net: e1000: reject unsupported coalescing params (diff) | |
download | linux-194219a79259390dd7b69208c41f39d096139014.tar.xz linux-194219a79259390dd7b69208c41f39d096139014.zip |
net: fm10k: reject unsupported coalescing params
Set ethtool_ops->supported_coalesce_params to let
the core reject unsupported coalescing parameters.
This driver did not previously reject unsupported parameters.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k')
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c index 68edf55ac906..37fbc646deb9 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c @@ -1151,6 +1151,8 @@ static int fm10k_set_channels(struct net_device *dev, } static const struct ethtool_ops fm10k_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | + ETHTOOL_COALESCE_USE_ADAPTIVE, .get_strings = fm10k_get_strings, .get_sset_count = fm10k_get_sset_count, .get_ethtool_stats = fm10k_get_ethtool_stats, |