]> git.ipfire.org Git - thirdparty/linux.git/commit
net: usb: smsc95xx: add support for ethtool pause parameters
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 18 Jul 2025 07:51:56 +0000 (09:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Jul 2025 00:42:12 +0000 (17:42 -0700)
commitc521b8c9f212f8304e9d5f92828ac662c621f32c
treec00bb36608526d9b7494d7ff2de72546b4f0a923
parent0b3b3ba113f061c406fdfbb7dd634db2c41ff149
net: usb: smsc95xx: add support for ethtool pause parameters

Implement ethtool .get_pauseparam and .set_pauseparam handlers for
configuring flow control on smsc95xx. The driver now supports enabling
or disabling transmit and receive pause frames, with or without
autonegotiation. Pause settings are applied during link-up based on
current PHY state and user configuration.

Previously, the driver used phy_get_pause() during link-up handling,
but lacked initialization and an ethtool interface to configure pause
modes. As a result, flow control support was effectively non-functional.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250718075157.297923-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/smsc95xx.c