summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-03-05 17:05:56 -0800
committerDavid S. Miller <davem@davemloft.net>2020-03-06 22:45:54 -0800
commitcdc7aaca074d4670bd1dc114f739000ec6bde217 (patch)
tree8e6d0e3ee7b081978fbe6f4d0a51b5085db12031 /arch/um
parentae9e82cc096b56074a488cc8b750595b60734da9 (diff)
downloadlinux-cdc7aaca074d4670bd1dc114f739000ec6bde217.tar.bz2
um: 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: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/vector_kern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
index 0ff86391f77d..e98304d0219e 100644
--- a/arch/um/drivers/vector_kern.c
+++ b/arch/um/drivers/vector_kern.c
@@ -1508,6 +1508,7 @@ static int vector_set_coalesce(struct net_device *netdev,
}
static const struct ethtool_ops vector_net_ethtool_ops = {
+ .supported_coalesce_params = ETHTOOL_COALESCE_TX_USECS,
.get_drvinfo = vector_net_get_drvinfo,
.get_link = ethtool_op_get_link,
.get_ts_info = ethtool_op_get_ts_info,