Commit 3b6e1a4e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: default avatarJakub Kicinski <kuba@kernel.org>
Reviewed-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 126b34ff
...@@ -1211,6 +1211,7 @@ static int cpsw_set_channels(struct net_device *ndev, ...@@ -1211,6 +1211,7 @@ static int cpsw_set_channels(struct net_device *ndev,
} }
static const struct ethtool_ops cpsw_ethtool_ops = { static const struct ethtool_ops cpsw_ethtool_ops = {
.supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
.get_drvinfo = cpsw_get_drvinfo, .get_drvinfo = cpsw_get_drvinfo,
.get_msglevel = cpsw_get_msglevel, .get_msglevel = cpsw_get_msglevel,
.set_msglevel = cpsw_set_msglevel, .set_msglevel = cpsw_set_msglevel,
......
...@@ -1175,6 +1175,7 @@ static int cpsw_set_channels(struct net_device *ndev, ...@@ -1175,6 +1175,7 @@ static int cpsw_set_channels(struct net_device *ndev,
} }
static const struct ethtool_ops cpsw_ethtool_ops = { static const struct ethtool_ops cpsw_ethtool_ops = {
.supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
.get_drvinfo = cpsw_get_drvinfo, .get_drvinfo = cpsw_get_drvinfo,
.get_msglevel = cpsw_get_msglevel, .get_msglevel = cpsw_get_msglevel,
.set_msglevel = cpsw_set_msglevel, .set_msglevel = cpsw_set_msglevel,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment