diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-08-24 18:34:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-25 19:13:27 -0700 |
commit | 1089650d8837095f63e001bbf14d7b48043d67ad (patch) | |
tree | 350c345ec00ce4926295527673e2be85d646f48c /drivers | |
parent | ebfa00c5745660fe7f0a91eea88d4dff658486c4 (diff) | |
download | linux-stable-1089650d8837095f63e001bbf14d7b48043d67ad.tar.gz linux-stable-1089650d8837095f63e001bbf14d7b48043d67ad.tar.bz2 linux-stable-1089650d8837095f63e001bbf14d7b48043d67ad.zip |
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: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index bd07a15d3b7c..8a1bbd2a6a20 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -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; } |