diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-12 21:07:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-14 21:13:54 -0700 |
commit | 930129d9d87528ff72d70391373f6e7a42dcc3e0 (patch) | |
tree | 461a0e3da0db31ed1d6c410dcec7560e82ed87cd /drivers/net/ethernet/myricom | |
parent | a1edda361520f80c68e56380c097b125b375261c (diff) | |
download | lwn-930129d9d87528ff72d70391373f6e7a42dcc3e0.tar.gz lwn-930129d9d87528ff72d70391373f6e7a42dcc3e0.zip |
net: myri10ge: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/myricom')
-rw-r--r-- | drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 2ee0d0be113a..2616fd735aab 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c @@ -1920,6 +1920,7 @@ myri10ge_phys_id(struct net_device *netdev, enum ethtool_phys_id_state state) } static const struct ethtool_ops myri10ge_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS, .get_drvinfo = myri10ge_get_drvinfo, .get_coalesce = myri10ge_get_coalesce, .set_coalesce = myri10ge_set_coalesce, |