Skip to content

Commit 01d1689

Browse files
joabreudavem330
authored andcommitted
net: stmmac: Decrease default RX Watchdog value
For performance reasons decrease the default RX Watchdog value for the minimum allowed. Signed-off-by: Jose Abreu <[email protected]> Cc: Joao Pinto <[email protected]> Cc: David S. Miller <[email protected]> Cc: Giuseppe Cavallaro <[email protected]> Cc: Alexandre Torgue <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5b11177 commit 01d1689

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/stmicro/stmmac/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct stmmac_safety_stats {
246246

247247
/* Max/Min RI Watchdog Timer count value */
248248
#define MAX_DMA_RIWT 0xff
249-
#define MIN_DMA_RIWT 0x20
249+
#define MIN_DMA_RIWT 0x10
250250
/* Tx coalesce parameters */
251251
#define STMMAC_COAL_TX_TIMER 1000
252252
#define STMMAC_MAX_COAL_TX_TICK 100000

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,9 +2516,9 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp)
25162516
priv->tx_lpi_timer = STMMAC_DEFAULT_TWT_LS;
25172517

25182518
if (priv->use_riwt) {
2519-
ret = stmmac_rx_watchdog(priv, priv->ioaddr, MAX_DMA_RIWT, rx_cnt);
2519+
ret = stmmac_rx_watchdog(priv, priv->ioaddr, MIN_DMA_RIWT, rx_cnt);
25202520
if (!ret)
2521-
priv->rx_riwt = MAX_DMA_RIWT;
2521+
priv->rx_riwt = MIN_DMA_RIWT;
25222522
}
25232523

25242524
if (priv->hw->pcs)

0 commit comments

Comments
 (0)