From: Jakub Kicinski Date: Fri, 6 Mar 2020 01:05:59 +0000 (-0800) Subject: r8152: reject unsupported coalescing params X-Git-Tag: v5.7-rc1~146^2~231^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e52a646b34ff1b7e60ca021ec152e4bad418f57c;p=users%2Fjedix%2Flinux-maple.git r8152: 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 Acked-by: Hayes Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index b8d2722a1b33..f27fdd6ab86f 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -6345,6 +6345,7 @@ static int rtl8152_set_ringparam(struct net_device *netdev, } static const struct ethtool_ops ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS, .get_drvinfo = rtl8152_get_drvinfo, .get_link = ethtool_op_get_link, .nway_reset = rtl8152_nway_reset,