diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-12 21:07:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-14 21:13:54 -0700 |
commit | 298b63eff3dfcd70a7c4b61feaa6d9e5c5e093cc (patch) | |
tree | 7d32be1b122b0e9d8b761c8be903f6e4fd6ff0cb | |
parent | 0c907754ae9de2eff3a480bfde0bf9e08fc1ad27 (diff) | |
download | linux-298b63eff3dfcd70a7c4b61feaa6d9e5c5e093cc.tar.bz2 |
net: jme: 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>
-rw-r--r-- | drivers/net/ethernet/jme.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c index de3c7ce9353c..c97c74164c73 100644 --- a/drivers/net/ethernet/jme.c +++ b/drivers/net/ethernet/jme.c @@ -2839,6 +2839,9 @@ jme_set_eeprom(struct net_device *netdev, } static const struct ethtool_ops jme_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | + ETHTOOL_COALESCE_MAX_FRAMES | + ETHTOOL_COALESCE_USE_ADAPTIVE_RX, .get_drvinfo = jme_get_drvinfo, .get_regs_len = jme_get_regs_len, .get_regs = jme_get_regs, |