]> git.baikalelectronics.ru Git - kernel.git/commitdiff
r8169: don't use bit LastFrag in tx descriptor after send
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 28 Aug 2019 20:27:30 +0000 (22:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 00:47:27 +0000 (17:47 -0700)
On RTL8125 this bit is always cleared after send. Therefore check for
tx_skb->skb being set what is functionally equivalent.

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 652bacf62de9aa0ea918e0e59883afd89bf2a5ef..4489cd9f22740cbd2f866a23a227db9b96ce2e0c 100644 (file)
@@ -5713,7 +5713,7 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp,
 
                rtl8169_unmap_tx_skb(tp_to_dev(tp), tx_skb,
                                     tp->TxDescArray + entry);
-               if (status & LastFrag) {
+               if (tx_skb->skb) {
                        pkts_compl++;
                        bytes_compl += tx_skb->skb->len;
                        napi_consume_skb(tx_skb->skb, budget);