summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/jme.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-03-13 07:07:49 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-15 07:13:54 +0300
commit298b63eff3dfcd70a7c4b61feaa6d9e5c5e093cc (patch)
tree7d32be1b122b0e9d8b761c8be903f6e4fd6ff0cb /drivers/net/ethernet/jme.c
parent0c907754ae9de2eff3a480bfde0bf9e08fc1ad27 (diff)
downloadlinux-298b63eff3dfcd70a7c4b61feaa6d9e5c5e093cc.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/jme.c')
-rw-r--r--drivers/net/ethernet/jme.c3
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,