Skip to content

Commit 3224414

Browse files
Francois Romieubwhacks
authored andcommitted
r8169: missing barriers.
[ Upstream commit 1e874e0 ] Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Hayes Wang <hayeswang@realtek.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
1 parent dc999ed commit 3224414

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • drivers/net/ethernet/realtek

‎drivers/net/ethernet/realtek/r8169.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5562,7 +5562,7 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
55625562

55635563
if (TX_BUFFS_AVAIL(tp) < MAX_SKB_FRAGS) {
55645564
netif_stop_queue(dev);
5565-
smp_rmb();
5565+
smp_mb();
55665566
if (TX_BUFFS_AVAIL(tp) >= MAX_SKB_FRAGS)
55675567
netif_wake_queue(dev);
55685568
}
@@ -5663,7 +5663,7 @@ static void rtl8169_tx_interrupt(struct net_device *dev,
56635663

56645664
if (tp->dirty_tx != dirty_tx) {
56655665
tp->dirty_tx = dirty_tx;
5666-
smp_wmb();
5666+
smp_mb();
56675667
if (netif_queue_stopped(dev) &&
56685668
(TX_BUFFS_AVAIL(tp) >= MAX_SKB_FRAGS)) {
56695669
netif_wake_queue(dev);
@@ -5674,7 +5674,6 @@ static void rtl8169_tx_interrupt(struct net_device *dev,
56745674
* of start_xmit activity is detected (if it is not detected,
56755675
* it is slow enough). -- FR
56765676
*/
5677-
smp_rmb();
56785677
if (tp->cur_tx != dirty_tx)
56795678
RTL_W8(TxPoll, NPQ);
56805679
}

0 commit comments

Comments
 (0)