提交 078db9a3 编写于 作者: J Jakub Kicinski 提交者: David S. Miller

net: mvpp2: 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: NJakub Kicinski <kuba@kernel.org>
Acked-by: NMatteo Croce <mcroce@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 16e8d8b3
...@@ -4384,6 +4384,8 @@ static const struct net_device_ops mvpp2_netdev_ops = { ...@@ -4384,6 +4384,8 @@ static const struct net_device_ops mvpp2_netdev_ops = {
}; };
static const struct ethtool_ops mvpp2_eth_tool_ops = { static const struct ethtool_ops mvpp2_eth_tool_ops = {
.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
ETHTOOL_COALESCE_MAX_FRAMES,
.nway_reset = mvpp2_ethtool_nway_reset, .nway_reset = mvpp2_ethtool_nway_reset,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.set_coalesce = mvpp2_ethtool_set_coalesce, .set_coalesce = mvpp2_ethtool_set_coalesce,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册