mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
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>
This commit is contained in:
parent
3b6e1a4edf
commit
1a9d729c45
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user