]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Add a stat for tracking pages waived
authorJoe Damato <jdamato@fastly.com>
Fri, 17 Dec 2021 19:35:18 +0000 (11:35 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 8 Feb 2022 16:21:52 +0000 (08:21 -0800)
commitb4dec25e2ee7c9f0c075c9d1a74842e45c1d9623
treecbe8a1d8b09ee7c09fcf066cc8a1f4dfdee918f3
parent126563d48fc712a93e67afe49d626a2acadd042c
i40e: Add a stat for tracking pages waived

In some cases, pages can not be reused because they are not associated with
the correct NUMA zone. Knowing how often pages are waived helps users to
understand the interaction between the driver's memory usage and their
system.

Pass rx_stats through to i40e_can_reuse_rx_page to allow tracking when
pages are waived.

The page waive count is accessible via ethtool.

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.h
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h