diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-16 13:47:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-17 20:56:58 -0700 |
commit | 1a9d729c4502a2a53b5227fe7568a1ce1b36ea70 (patch) | |
tree | 8e6c9272d94800e158c4b2e809184f26c6fd887b /drivers | |
parent | 3b6e1a4edf6add45dc68ffccaec98e8160ec8668 (diff) |
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 <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_emac.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |