]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 25 Aug 2017 01:34:44 +0000 (18:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 02:13:27 +0000 (19:13 -0700)
commit8bfea825dfd949c518fa9be6b4fe700d43e47102
tree404ad71042e212734fb4c5cbf9db7c45a00f4f78
parent6121172043ca680656b47f1df8ed3ae4332f9027
r8169: Be drop monitor friendly

rtl_tx() is the TX reclamation process whereas rtl8169_tx_clear_range() does
the TX ring cleaning during shutdown, both of these functions should call
dev_consume_skb_any() to be drop monitor friendly.

Fixes: ef910301f204 ("r8169: do not account fragments as packets")
Fixes: c37fa873ed74 ("r8169: Do not use dev_kfree_skb in xmit path")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c