diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-16 23:47:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-18 06:56:57 +0300 |
commit | 126b34ff9f5b660ee05005fef17475993c36e4f4 (patch) | |
tree | 58b4767ae3b6ca01688a4855614f2d16e0348e1f /drivers/net/ethernet/tehuti/tehuti.c | |
parent | a5a8758f42b0dabbe13ffeaa28fff876ea45c8a0 (diff) | |
download | linux-126b34ff9f5b660ee05005fef17475993c36e4f4.tar.xz |
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: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/tehuti/tehuti.c')
-rw-r--r-- | drivers/net/ethernet/tehuti/tehuti.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index 0f8a924fc60c..40a2ce0ca808 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c @@ -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 const struct ethtool_ops bdx_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | + ETHTOOL_COALESCE_MAX_FRAMES, .get_drvinfo = bdx_get_drvinfo, .get_link = ethtool_op_get_link, .get_coalesce = bdx_get_coalesce, |