diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-05 17:05:58 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-06 22:45:55 -0800 |
commit | e5ad00b34dc03bb56b1d6c99c214d4d530656868 (patch) | |
tree | 1020a153b70f710a0c3b76ea10fac1e5a72219f6 /drivers/net | |
parent | 524250a324da0ec5e942b11a8f8536f3bc4872f5 (diff) | |
download | linux-next-e5ad00b34dc03bb56b1d6c99c214d4d530656868.tar.gz |
tun: 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>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 4689e4c62e21..228fe449dc6d 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -3546,6 +3546,7 @@ static int tun_set_coalesce(struct net_device *dev, } static const struct ethtool_ops tun_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_RX_MAX_FRAMES, .get_drvinfo = tun_get_drvinfo, .get_msglevel = tun_get_msglevel, .set_msglevel = tun_set_msglevel, |