summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
diff options
context:
space:
mode:
authorJoe Damato <jdamato@fastly.com>2021-12-17 11:35:17 -0800
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-02-08 08:21:52 -0800
commit453f8305483851c20a41b66719d5acdc945541ca (patch)
tree4dbd2a692353c56cfa812bab0b22a05ad565bb6f /drivers/net/ethernet/intel/i40e/i40e_ethtool.c
parentb3936d27673c7cf071b458074acb803e910d5502 (diff)
downloadlwn-453f8305483851c20a41b66719d5acdc945541ca.tar.gz
lwn-453f8305483851c20a41b66719d5acdc945541ca.zip
i40e: Add a stat tracking new RX page allocations
Add a counter for new page allocations in the i40e RX path. This stat is accessible with 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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_ethtool.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ethtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 9317b2d31c9e..17a16b4e4405 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -296,6 +296,7 @@ static const struct i40e_stats i40e_gstrings_misc_stats[] = {
I40E_VSI_STAT("rx_alloc_fail", rx_buf_failed),
I40E_VSI_STAT("rx_pg_alloc_fail", rx_page_failed),
I40E_VSI_STAT("rx_cache_reuse", rx_page_reuse),
+ I40E_VSI_STAT("rx_cache_alloc", rx_page_alloc),
};
/* These PF_STATs might look like duplicates of some NETDEV_STATs,