]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ixgbevf: remove unused fields from struct ixgbevf_adapter
authorYuto Ohnuki <ytohnuki@amazon.com>
Thu, 17 Jul 2025 08:46:09 +0000 (09:46 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 18 Jul 2025 16:02:28 +0000 (09:02 -0700)
Remove hw_rx_no_dma_resources and eitr_param fields from struct
ixgbevf_adapter since these fields are never referenced in the driver.

Note that the interrupt throttle rate is controlled by the
rx_itr_setting and tx_itr_setting variables.

This change simplifies the ixgbevf driver by removing unused fields,
which improves maintainability.

Signed-off-by: Yuto Ohnuki <ytohnuki@amazon.com>
Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h

index 4384e892f9679a67d590926ee6ab37e81c982778..3a379e6a3a2ab21fa4e1b61bc0d5ec4b0e381b84 100644 (file)
@@ -346,7 +346,6 @@ struct ixgbevf_adapter {
        int num_rx_queues;
        struct ixgbevf_ring *rx_ring[MAX_TX_QUEUES]; /* One per active queue */
        u64 hw_csum_rx_error;
-       u64 hw_rx_no_dma_resources;
        int num_msix_vectors;
        u64 alloc_rx_page_failed;
        u64 alloc_rx_buff_failed;
@@ -363,8 +362,6 @@ struct ixgbevf_adapter {
        /* structs defined in ixgbe_vf.h */
        struct ixgbe_hw hw;
        u16 msg_enable;
-       /* Interrupt Throttle Rate */
-       u32 eitr_param;
 
        struct ixgbevf_hw_stats stats;