Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: lan743x: speed-based and user-configurable interrupt moderation
@ 2026-08-03 12:48 Dhanushkalyan G
  2026-08-03 12:48 ` [PATCH net-next 1/2] net: lan743x: set interrupt moderation timer based on link speed Dhanushkalyan G
  2026-08-03 12:48 ` [PATCH net-next 2/2] net: lan743x: add ethtool interrupt coalescing support Dhanushkalyan G
  0 siblings, 2 replies; 4+ messages in thread
From: Dhanushkalyan G @ 2026-08-03 12:48 UTC (permalink / raw)
  To: netdev
  Cc: Bryan Whitehead, UNGLinuxDriver, Andrew Lunn, David S . Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Thangaraj Samynathan,
	linux-kernel

The lan743x driver programs a single fixed interrupt moderation timer
into all per-vector INT_MOD_CFG registers at interrupt open, regardless
of link speed and with no way for userspace to tune it.

This series makes the moderation timer follow the negotiated link speed
and then exposes it through ethtool:

Patch 1 sets the timer as a function of link speed in the MAC link-up
path (64 us at 2.5G, 150 us at 1G, 330 us at 100M/10M) and separates the
static vector-to-timer mapping (programmed once at interrupt open) from
the per-speed timer value.

Patch 2 adds ethtool .get_coalesce/.set_coalesce with
ETHTOOL_COALESCE_USECS and ETHTOOL_COALESCE_USE_ADAPTIVE_RX/TX. Adaptive
mode (the default) keeps the timer tracking the link speed; disabling it
pins the timer to a user supplied value. Because the hardware uses one
value for all vectors, RX and TX cannot be tuned independently, so
mismatched rx/tx requests are rejected.

Dhanushkalyan G (1):
  net: lan743x: add ethtool interrupt coalescing support

Thangaraj Samynathan (1):
  net: lan743x: set interrupt moderation timer based on link speed

 .../net/ethernet/microchip/lan743x_ethtool.c  | 70 ++++++++++++++++++
 drivers/net/ethernet/microchip/lan743x_main.c | 71 ++++++++++++++++---
 drivers/net/ethernet/microchip/lan743x_main.h | 14 +++-
 3 files changed, 144 insertions(+), 11 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-06 19:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03 12:48 [PATCH net-next 0/2] net: lan743x: speed-based and user-configurable interrupt moderation Dhanushkalyan G
2026-08-03 12:48 ` [PATCH net-next 1/2] net: lan743x: set interrupt moderation timer based on link speed Dhanushkalyan G
2026-08-06 19:14   ` Jakub Kicinski
2026-08-03 12:48 ` [PATCH net-next 2/2] net: lan743x: add ethtool interrupt coalescing support Dhanushkalyan G

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox