]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Remove rx page reuse double count
authorJoe Damato <jdamato@fastly.com>
Fri, 17 Dec 2021 19:35:15 +0000 (11:35 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 8 Feb 2022 16:21:52 +0000 (08:21 -0800)
commitdbb3a81773e3ce29620a8ecbe903e484f99eea6f
treeb92518636978c332e812e6c2e25c9fb471198298
parent662e47e8df9c8feceb0ff05991f8b50f6f0d2aac
i40e: Remove rx page reuse double count

Page reuse was being tracked from two locations:
  - i40e_reuse_rx_page (via 40e_clean_rx_irq), and
  - i40e_alloc_mapped_page

Remove the double count and only count reuse from i40e_alloc_mapped_page
when the page is about to be reused.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c