From: Dhanushkalyan G <Dhanushkalyan.G@microchip.com>
To: <netdev@vger.kernel.org>
Cc: Bryan Whitehead <bryan.whitehead@microchip.com>,
<UNGLinuxDriver@microchip.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
"Thangaraj Samynathan" <Thangaraj.S@microchip.com>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH net-next 0/2] net: lan743x: speed-based and user-configurable interrupt moderation
Date: Mon, 3 Aug 2026 18:18:45 +0530 [thread overview]
Message-ID: <20260803124847.17315-1-Dhanushkalyan.G@microchip.com> (raw)
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
next reply other threads:[~2026-08-03 12:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 12:48 Dhanushkalyan G [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260803124847.17315-1-Dhanushkalyan.G@microchip.com \
--to=dhanushkalyan.g@microchip.com \
--cc=Thangaraj.S@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew+netdev@lunn.ch \
--cc=bryan.whitehead@microchip.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox