]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc05cfb38e6309eda9853400710e30661cfdb712
tree350c345ec00ce4926295527673e2be85d646f48c
parentf55742c92838264ced808e81313385b1f47d9eda
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: ef910301f204 ("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