Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1089650d authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

r8169: Do not increment tx_dropped in TX ring cleaning



rtl8169_tx_clear_range() is responsible for cleaning up the TX ring
during interface shutdown, incrementing tx_dropped for every SKB that we
left at the time in the ring is misleading.

Fixes: cac4b22f ("r8169: do not account fragments as packets")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ebfa00c5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -6863,7 +6863,6 @@ static void rtl8169_tx_clear_range(struct rtl8169_private *tp, u32 start,
			rtl8169_unmap_tx_skb(&tp->pci_dev->dev, tx_skb,
					     tp->TxDescArray + entry);
			if (skb) {
				tp->dev->stats.tx_dropped++;
				dev_kfree_skb_any(skb);
				tx_skb->skb = NULL;
			}