Skip to content

Commit 5b71256

Browse files
kuba-moodavem330
authored andcommitted
net: via: 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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 19d9ec9 commit 5b71256

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/via/via-velocity.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3648,6 +3648,8 @@ static void velocity_get_ethtool_stats(struct net_device *dev,
36483648
}
36493649

36503650
static const struct ethtool_ops velocity_ethtool_ops = {
3651+
.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
3652+
ETHTOOL_COALESCE_MAX_FRAMES,
36513653
.get_drvinfo = velocity_get_drvinfo,
36523654
.get_wol = velocity_ethtool_get_wol,
36533655
.set_wol = velocity_ethtool_set_wol,

0 commit comments

Comments
 (0)