summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/skge.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-03-13 07:07:54 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-15 07:13:54 +0300
commitb48ae153345afa2b5c4d2dcc45ed90991b630729 (patch)
tree350ca0808a9afc6a1164b48d866c128098a5b8a8 /drivers/net/ethernet/marvell/skge.c
parentaf7fcbbd2229cc8b3a643cdb3f9a39cf7bd55181 (diff)
downloadlinux-b48ae153345afa2b5c4d2dcc45ed90991b630729.tar.xz
net: skge: 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/marvell/skge.c')
-rw-r--r--drivers/net/ethernet/marvell/skge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c
index 97f270d30cce..3c89206f18a7 100644
--- a/drivers/net/ethernet/marvell/skge.c
+++ b/drivers/net/ethernet/marvell/skge.c
@@ -876,6 +876,7 @@ static int skge_set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom
}
static const struct ethtool_ops skge_ethtool_ops = {
+ .supported_coalesce_params = ETHTOOL_COALESCE_USECS,
.get_drvinfo = skge_get_drvinfo,
.get_regs_len = skge_get_regs_len,
.get_regs = skge_get_regs,