]> git.ipfire.org Git - thirdparty/linux.git/commit
igbvf: remove unused interrupt counter fields from struct igbvf_adapter
authorKohei Enju <enjuk@amazon.com>
Thu, 12 Jun 2025 16:13:40 +0000 (01:13 +0900)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 3 Jul 2025 16:39:04 +0000 (09:39 -0700)
commit9ebca2374dbb194a358bdd8a32c1cf9227a7a490
tree02aabffbd86c7fd137a57d62a2bf62cf8631cb8c
parentb91c0e4d63d99c8816f1a29d2be9ca42d8792e63
igbvf: remove unused interrupt counter fields from struct igbvf_adapter

Remove `int_counter0` and `int_counter1` from struct igbvf_adapter since
they are only incremented in interrupt handlers igbvf_intr_msix_rx() and
igbvf_msix_other(), but never read or used anywhere in the driver.

Note that igbvf_intr_msix_tx() does not have similar counter increments,
suggesting that these were likely overlooked during development.

Eliminate the fields and their unnecessary accesses in interrupt
handlers.

Tested-by: Kohei Enju <enjuk@amazon.com>
Signed-off-by: Kohei Enju <enjuk@amazon.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igbvf/igbvf.h
drivers/net/ethernet/intel/igbvf/netdev.c