提交 1a9d729c 编写于 作者: J Jakub Kicinski 提交者: David S. Miller

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: NJakub Kicinski <kuba@kernel.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3b6e1a4e
...@@ -481,6 +481,7 @@ static int emac_set_coalesce(struct net_device *ndev, ...@@ -481,6 +481,7 @@ static int emac_set_coalesce(struct net_device *ndev,
* Ethtool support for EMAC adapter * Ethtool support for EMAC adapter
*/ */
static const struct ethtool_ops ethtool_ops = { static const struct ethtool_ops ethtool_ops = {
.supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
.get_drvinfo = emac_get_drvinfo, .get_drvinfo = emac_get_drvinfo,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_coalesce = emac_get_coalesce, .get_coalesce = emac_get_coalesce,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册