Commit 126b34ff authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

net: tehuti: 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>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5a8758f
...@@ -2373,6 +2373,8 @@ static void bdx_get_ethtool_stats(struct net_device *netdev, ...@@ -2373,6 +2373,8 @@ static void bdx_get_ethtool_stats(struct net_device *netdev,
static void bdx_set_ethtool_ops(struct net_device *netdev) static void bdx_set_ethtool_ops(struct net_device *netdev)
{ {
static const struct ethtool_ops bdx_ethtool_ops = { static const struct ethtool_ops bdx_ethtool_ops = {
.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
ETHTOOL_COALESCE_MAX_FRAMES,
.get_drvinfo = bdx_get_drvinfo, .get_drvinfo = bdx_get_drvinfo,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_coalesce = bdx_get_coalesce, .get_coalesce = bdx_get_coalesce,
......
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