]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit377b62736c01f14309141c69caa6d84363c12e12
tree8787075d4aeb005ae3630b21f2999046b90d3376
parent48072ae1ec7a1c778771cad8c1b8dd803c4992ab
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