Skip to content

Commit b604eb3

Browse files
kuba-moodavem330
authored andcommitted
net: r8169: 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]> Acked-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4a988e3 commit b604eb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,6 +2006,8 @@ static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data)
20062006
}
20072007

20082008
static const struct ethtool_ops rtl8169_ethtool_ops = {
2009+
.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
2010+
ETHTOOL_COALESCE_MAX_FRAMES,
20092011
.get_drvinfo = rtl8169_get_drvinfo,
20102012
.get_regs_len = rtl8169_get_regs_len,
20112013
.get_link = ethtool_op_get_link,

0 commit comments

Comments
 (0)