]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 26 Aug 2017 01:14:24 +0000 (18:14 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Oct 2017 16:00:56 +0000 (09:00 -0700)
commit4bc7b8b43bb2b32e138cc68662ea520f03303a60
tree8787075d4aeb005ae3630b21f2999046b90d3376
parent764e80a13415af57d72d4604e5612d784fdcf5b0
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>
drivers/net/ethernet/intel/e1000e/netdev.c