Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i40e: Remove unused RX realloc stat

After commit 1a557afc4dd5 ("i40e: Refactor receive routine"),
rx_stats.realloc_count is no longer being incremented, so remove it.

The debugfs string was left, but hardcoded to 0. This is intended to
prevent breaking any existing code / scripts that are parsing debugfs
for i40e.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>

authored by

Joe Damato and committed by
Tony Nguyen
79f227c4 647c65e1

+1 -3
+1 -2
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
··· 275 275 rx_ring->rx_stats.alloc_page_failed, 276 276 rx_ring->rx_stats.alloc_buff_failed); 277 277 dev_info(&pf->pdev->dev, 278 - " rx_rings[%i]: rx_stats: realloc_count = %lld, page_reuse_count = %lld\n", 278 + " rx_rings[%i]: rx_stats: realloc_count = 0, page_reuse_count = %lld\n", 279 279 i, 280 - rx_ring->rx_stats.realloc_count, 281 280 rx_ring->rx_stats.page_reuse_count); 282 281 dev_info(&pf->pdev->dev, 283 282 " rx_rings[%i]: size = %i\n",
-1
drivers/net/ethernet/intel/i40e/i40e_txrx.h
··· 298 298 u64 alloc_page_failed; 299 299 u64 alloc_buff_failed; 300 300 u64 page_reuse_count; 301 - u64 realloc_count; 302 301 }; 303 302 304 303 enum i40e_ring_state_t {