mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 14:19:51 +07:00
ftgmac100: Add missing barrier in ftgmac100_rx_packet()
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7b49cd1c9e
commit
027f426d54
@ -444,6 +444,9 @@ static bool ftgmac100_rx_packet(struct ftgmac100 *priv, int *processed)
|
||||
if (!ftgmac100_rxdes_packet_ready(rxdes))
|
||||
return false;
|
||||
|
||||
/* Order subsequent reads with the test for the ready bit */
|
||||
dma_rmb();
|
||||
|
||||
/* We don't cope with fragmented RX packets */
|
||||
if (unlikely(!ftgmac100_rxdes_first_segment(rxdes) ||
|
||||
!ftgmac100_rxdes_last_segment(rxdes)))
|
||||
|
Loading…
Reference in New Issue
Block a user