]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e1000e: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 26 Aug 2017 01:14:24 +0000 (18:14 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Mon, 8 Jan 2018 17:48:18 +0000 (09:48 -0800)
commitafc8c11862a159fdac792411b802dfb3e09040d4
tree8bf205c6f25cd34182e9856829cebd3acd0a2395
parentd985a6426fad3798364ab4610dd700c8d72e9627
e1000e: Be drop monitor friendly

e1000e_put_txbuf() can be called from normal reclamation path as well as
when a DMA mapping failure, so we need to differentiate these two cases
when freeing SKBs to be drop monitor friendly. e1000e_tx_hwtstamp_work()
and e1000_remove() are processing TX timestamped SKBs and those should
not be accounted as drops either.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 27069012
(cherry picked from commit 377b62736c01f14309141c69caa6d84363c12e12)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Ethan Zhao <ethan.zhao@oracle.com>
drivers/net/ethernet/intel/e1000e/netdev.c