mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
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>
This commit is contained in:
parent
86f0f963f8
commit
194219a792
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user