diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-11 23:32:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 19:32:35 +0100 |
commit | 8213f6c9a275da084dc9363f36f93138547f46f1 (patch) | |
tree | 0594da0d36c097b8acdc8e792214d1b79a146c27 /drivers/net/ethernet/emulex | |
parent | sfc: ethtool: Refactor to remove fallthrough comments in case blocks (diff) | |
download | linux-8213f6c9a275da084dc9363f36f93138547f46f1.tar.xz linux-8213f6c9a275da084dc9363f36f93138547f46f1.zip |
net: be2net: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index 9d9f0545fbfe..d6ed1d943762 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c @@ -1408,6 +1408,9 @@ static int be_set_priv_flags(struct net_device *netdev, u32 flags) } const struct ethtool_ops be_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | + ETHTOOL_COALESCE_USE_ADAPTIVE | + ETHTOOL_COALESCE_USECS_LOW_HIGH, .get_drvinfo = be_get_drvinfo, .get_wol = be_get_wol, .set_wol = be_set_wol, |