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 <joabreu@synopsys.com> Cc: Joao Pinto <jpinto@synopsys.com> Cc: David S. Miller <davem@davemloft.net> Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com> Cc: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5b1117704d
commit
01d1689d6d
@@ -246,7 +246,7 @@ struct stmmac_safety_stats {
|
|||||||
|
|
||||||
/* Max/Min RI Watchdog Timer count value */
|
/* Max/Min RI Watchdog Timer count value */
|
||||||
#define MAX_DMA_RIWT 0xff
|
#define MAX_DMA_RIWT 0xff
|
||||||
#define MIN_DMA_RIWT 0x20
|
#define MIN_DMA_RIWT 0x10
|
||||||
/* Tx coalesce parameters */
|
/* Tx coalesce parameters */
|
||||||
#define STMMAC_COAL_TX_TIMER 1000
|
#define STMMAC_COAL_TX_TIMER 1000
|
||||||
#define STMMAC_MAX_COAL_TX_TICK 100000
|
#define STMMAC_MAX_COAL_TX_TICK 100000
|
||||||
|
@@ -2516,9 +2516,9 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp)
|
|||||||
priv->tx_lpi_timer = STMMAC_DEFAULT_TWT_LS;
|
priv->tx_lpi_timer = STMMAC_DEFAULT_TWT_LS;
|
||||||
|
|
||||||
if (priv->use_riwt) {
|
if (priv->use_riwt) {
|
||||||
ret = stmmac_rx_watchdog(priv, priv->ioaddr, MAX_DMA_RIWT, rx_cnt);
|
ret = stmmac_rx_watchdog(priv, priv->ioaddr, MIN_DMA_RIWT, rx_cnt);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
priv->rx_riwt = MAX_DMA_RIWT;
|
priv->rx_riwt = MIN_DMA_RIWT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->hw->pcs)
|
if (priv->hw->pcs)
|
||||||
|
Reference in New Issue
Block a user