]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: r8169: reject unsupported coalescing params
authorJakub Kicinski <kuba@kernel.org>
Fri, 13 Mar 2020 04:08:01 +0000 (21:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:13:55 +0000 (21:13 -0700)
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: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c

index ce030e093485b44669946c993e6acaac99b081ef..d2eef3754b33e4c1ada745daa274061b439aed29 100644 (file)
@@ -2006,6 +2006,8 @@ out:
 }
 
 static const struct ethtool_ops rtl8169_ethtool_ops = {
+       .supported_coalesce_params = ETHTOOL_COALESCE_USECS |
+                                    ETHTOOL_COALESCE_MAX_FRAMES,
        .get_drvinfo            = rtl8169_get_drvinfo,
        .get_regs_len           = rtl8169_get_regs_len,
        .get_link               = ethtool_op_get_link,