Thread (8 messages) flat view 8 messages, 3 authors, 7d ago

Re: [PATCH net-next 1/2] net: stmmac: ethtool: Comment the magic numbers in RIWT computation

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-08-02 15:02:42
Also in: lkml, netdev

On Sun, Aug 02, 2026 at 01:40:13PM +0200, Maxime Chevallier wrote:
Receive Interrupt Watchdog Timer is an RX interrupt coalescing mechanism
used by some variants of dwmac. It allows waiting a bit before
triggering the rx interrupts, allowing for batch processing.

The RIWT is configured with a granularity of 256 stmmac clk ticks. Let's
add a comment for that and wrap the raw "1000000" into USEC_PER_SEC, as
we're computing "how many clock cycles in one microsec" with that step.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help