[Intel-wired-lan] [net-queue, v2, 4/5] i40e: Add a stat for tracking pages waived.
Switzer, David
david.switzer at intel.com
Mon Feb 7 15:17:35 UTC 2022
>-----Original Message-----
>From: Joe Damato <jdamato at fastly.com>
>Sent: Friday, December 17, 2021 11:35 AM
>To: intel-wired-lan at lists.osuosl.org
>Cc: kuba at kernel.org; Brandeburg, Jesse <jesse.brandeburg at intel.com>;
>Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Joe Damato
><jdamato at fastly.com>
>Subject: [net-queue,v2,4/5] 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 at fastly.com>
>---
> drivers/net/ethernet/intel/i40e/i40e.h | 1 +
> drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 1 +
> drivers/net/ethernet/intel/i40e/i40e_main.c | 5 ++++-
> drivers/net/ethernet/intel/i40e/i40e_txrx.c | 13 ++++++++++---
> drivers/net/ethernet/intel/i40e/i40e_txrx.h | 1 +
> 5 files changed, 17 insertions(+), 4 deletions(-)
>
Tested-By: Dave Switzer <david.switzer at intel.com>
More information about the Intel-wired-lan
mailing list