net: cpsw: 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> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
126b34ff9f
commit
3b6e1a4edf
|
@ -1211,6 +1211,7 @@ static int cpsw_set_channels(struct net_device *ndev,
|
|||
}
|
||||
|
||||
static const struct ethtool_ops cpsw_ethtool_ops = {
|
||||
.supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
|
||||
.get_drvinfo = cpsw_get_drvinfo,
|
||||
.get_msglevel = cpsw_get_msglevel,
|
||||
.set_msglevel = cpsw_set_msglevel,
|
||||
|
|
|
@ -1175,6 +1175,7 @@ static int cpsw_set_channels(struct net_device *ndev,
|
|||
}
|
||||
|
||||
static const struct ethtool_ops cpsw_ethtool_ops = {
|
||||
.supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
|
||||
.get_drvinfo = cpsw_get_drvinfo,
|
||||
.get_msglevel = cpsw_get_msglevel,
|
||||
.set_msglevel = cpsw_set_msglevel,
|
||||
|
|
Loading…
Reference in New Issue