Skip to content

Commit 19d9ec9

Browse files
kuba-moodavem330
authored andcommitted
net: sxgbe: 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 b604eb3 commit 19d9ec9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ static int sxgbe_get_regs_len(struct net_device *dev)
476476
}
477477

478478
static const struct ethtool_ops sxgbe_ethtool_ops = {
479+
.supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
479480
.get_drvinfo = sxgbe_getdrvinfo,
480481
.get_msglevel = sxgbe_getmsglevel,
481482
.set_msglevel = sxgbe_setmsglevel,

0 commit comments

Comments
 (0)