[PATCH net-next 0/2] net: lan743x: speed-based and user-configurable interrupt moderation
From: Dhanushkalyan G <hidden>
Date: 2026-08-03 12:48:54
Also in:
lkml
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