From: Jakub Kicinski Date: Wed, 11 Mar 2020 22:33:02 +0000 (-0700) Subject: net: ixgbevf: reject unsupported coalescing params X-Git-Tag: Ubuntu-5.13.0-19.19~6375^2~185^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e259b9114b1e352940299a22faec8bc50cb746b8;p=mirror_ubuntu-jammy-kernel.git net: ixgbevf: 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/intel/ixgbevf/ethtool.c b/drivers/net/ethernet/intel/ixgbevf/ethtool.c index f7f309c96fa8..988fa49fa99a 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ethtool.c +++ b/drivers/net/ethernet/intel/ixgbevf/ethtool.c @@ -968,6 +968,7 @@ static int ixgbevf_set_priv_flags(struct net_device *netdev, u32 priv_flags) } static const struct ethtool_ops ixgbevf_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS, .get_drvinfo = ixgbevf_get_drvinfo, .get_regs_len = ixgbevf_get_regs_len, .get_regs = ixgbevf_get_regs,