From: Jakub Kicinski Date: Mon, 16 Mar 2020 20:47:09 +0000 (-0700) Subject: net: davinci_emac: reject unsupported coalescing params X-Git-Tag: block-5.7-2020-04-09~9^2~146^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1a9d729c4502a2a53b5227fe7568a1ce1b36ea70;p=linux-2.6-block.git net: davinci_emac: 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/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 75d4e16c692b..de282531f68b 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c @@ -481,6 +481,7 @@ static int emac_set_coalesce(struct net_device *ndev, * Ethtool support for EMAC adapter */ static const struct ethtool_ops ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS, .get_drvinfo = emac_get_drvinfo, .get_link = ethtool_op_get_link, .get_coalesce = emac_get_coalesce,