r8169: remove now unneeded barrier in rtl_tx
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 6 Mar 2020 22:58:50 +0000 (23:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 02:07:42 +0000 (19:07 -0700)
Until ae84bc187337 ("r8169: don't use bit LastFrag in tx descriptor
after send") we used to access another bit in the descriptor, therefore
it seems the barrier was needed. Since this commit DescOwn is the
only bit we're interested in, so the barrier isn't needed any longer.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c

index 8a707d6..181b35b 100644 (file)
@@ -4397,12 +4397,6 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp,
                if (status & DescOwn)
                        break;
 
-               /* This barrier is needed to keep us from reading
-                * any other fields out of the Tx descriptor until
-                * we know the status of DescOwn
-                */
-               dma_rmb();
-
                rtl8169_unmap_tx_skb(tp, entry);
 
                if (skb) {