diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-06-28 10:29:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-28 19:23:39 +0300 |
commit | 858a31ffc3d97a133e0f4fb2b5726b5ef80cb549 (patch) | |
tree | e82963c2a2373983d0d717fcd1068d27997a1a43 /drivers/net/ethernet/stmicro | |
parent | a993db88d17d20ccf77f7e609935f28bb9bca1c2 (diff) | |
download | linux-858a31ffc3d97a133e0f4fb2b5726b5ef80cb549.tar.xz |
net: stmmac: Update RX Tail Pointer to last free entry
Update the RX Tail Pointer to the last available SKB entry.
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 620dd387e3b1..a629b3144a0d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -3347,6 +3347,8 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv, u32 queue) entry = STMMAC_GET_ENTRY(entry, DMA_RX_SIZE); } rx_q->dirty_rx = entry; + rx_q->rx_tail_addr = rx_q->dma_rx_phy + + (rx_q->dirty_rx * sizeof(struct dma_desc)); stmmac_set_rx_tail_ptr(priv, priv->ioaddr, rx_q->rx_tail_addr, queue); } |