]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sparx5/lan969x: Add support for ethtool pause parameters
authorDaniel Machon <daniel.machon@microchip.com>
Wed, 17 Sep 2025 11:49:43 +0000 (13:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 22:55:54 +0000 (15:55 -0700)
commit315f423be0d1ebe720d8fd4fa6bed68586b13d34
tree2cd6e9896c44282430e9d6ecd01faf7c05971cac
parent6287982aa54946449bccff3e6488d3a15e458392
net: sparx5/lan969x: Add support for ethtool pause parameters

Implement get_pauseparam() and set_pauseparam() ethtool operations for
Sparx5 ports.  This allows users to query and configure IEEE 802.3x
pause frame settings via:

ethtool -a ethX
ethtool -A ethX rx on|off tx on|off autoneg on|off

The driver delegates pause parameter handling to phylink through
phylink_ethtool_get_pauseparam() and phylink_ethtool_set_pauseparam().

The underlying configuration of pause frame generation and reception is
already implemented in the driver; this patch only wires it up to the
standard ethtool interface, making the feature accessible to userspace.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20250917-802-3x-pause-v1-1-3d1565a68a96@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c