net: stmmac: Do not set RX IC bit if RX Coalesce is zero
We may only want to use the RX Watchdog so lets check if RX Coalesce settings are non-zero and only set the RX Interrupt on Completion bit if its not. Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>5.4-rM2-2.2.x-imx-squashed
parent
294ef5f6ce
commit
c83f71b70c
|
@ -3475,7 +3475,11 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv, u32 queue)
|
|||
rx_q->rx_count_frames += priv->rx_coal_frames;
|
||||
if (rx_q->rx_count_frames > priv->rx_coal_frames)
|
||||
rx_q->rx_count_frames = 0;
|
||||
use_rx_wd = priv->use_riwt && rx_q->rx_count_frames;
|
||||
|
||||
use_rx_wd = !priv->rx_coal_frames;
|
||||
use_rx_wd |= rx_q->rx_count_frames > 0;
|
||||
if (!priv->use_riwt)
|
||||
use_rx_wd = false;
|
||||
|
||||
dma_wmb();
|
||||
stmmac_set_rx_owner(priv, p, use_rx_wd);
|
||||
|
|
Loading…
Reference in New Issue