r8169: Do not increment tx_dropped in TX ring cleaning
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 25 Aug 2017 01:34:43 +0000 (18:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 02:13:27 +0000 (19:13 -0700)
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: cac4b22f3d6a ("r8169: do not account fragments as packets")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c

index bd07a15d3b7c09886de55af99a45975ac3401219..8a1bbd2a6a20cd57d25192b88f7071d0066c8277 100644 (file)
@@ -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;
                        }