diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-08-28 22:27:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-29 17:47:27 -0700 |
commit | ae84bc18733752e9bf47227bd80b3c0f3649b8d0 (patch) | |
tree | a52e65b3134f0d903468ae0cb4190883d5baf083 | |
parent | 7366016d2d4c7b2e5168db6fa7920fa094561db5 (diff) |
r8169: don't use bit LastFrag in tx descriptor after send
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>
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 652bacf62de9..4489cd9f2274 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -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); |