]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
igc: Remove unneeded variable
authorSasha Neftin <sasha.neftin@intel.com>
Mon, 22 Jun 2020 07:20:17 +0000 (10:20 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 27 Jul 2020 15:49:31 +0000 (08:49 -0700)
Though we are populating and tracking ictxqec, the value is not being used
for anything so remove it altogether and save the register read.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_hw.h
drivers/net/ethernet/intel/igc/igc_mac.c
drivers/net/ethernet/intel/igc/igc_main.c
drivers/net/ethernet/intel/igc/igc_regs.h

index 2ab7d9fab6af8ca2cd1904f54decb030553669dc..68e83d8529eac4be7c99e7d9451197abab1e51b5 100644 (file)
@@ -280,7 +280,6 @@ struct igc_hw_stats {
        u64 icrxatc;
        u64 ictxptc;
        u64 ictxatc;
-       u64 ictxqec;
        u64 ictxqmtc;
        u64 icrxdmtc;
        u64 icrxoc;
index b47e7b0a6398a913c9829f7bae609aa270b070fe..2d9ca3e1bddef8db65330af26344583b2a9ff790 100644 (file)
@@ -301,7 +301,6 @@ void igc_clear_hw_cntrs_base(struct igc_hw *hw)
        rd32(IGC_ICRXATC);
        rd32(IGC_ICTXPTC);
        rd32(IGC_ICTXATC);
-       rd32(IGC_ICTXQEC);
        rd32(IGC_ICTXQMTC);
        rd32(IGC_ICRXDMTC);
 
index 8d5869dcf798b18698bd841b737d7dcffa45dd27..e620d7a78d054ad10e3d4a541a097a31b4520875 100644 (file)
@@ -3735,7 +3735,6 @@ void igc_update_stats(struct igc_adapter *adapter)
        adapter->stats.icrxatc += rd32(IGC_ICRXATC);
        adapter->stats.ictxptc += rd32(IGC_ICTXPTC);
        adapter->stats.ictxatc += rd32(IGC_ICTXATC);
-       adapter->stats.ictxqec += rd32(IGC_ICTXQEC);
        adapter->stats.ictxqmtc += rd32(IGC_ICTXQMTC);
        adapter->stats.icrxdmtc += rd32(IGC_ICRXDMTC);
 
index 1c46cec5a79987678c7f5b61b81ebe92b79d563f..d6ed1b1ebcbc5f73587e1789a683498b0d5c1cee 100644 (file)
@@ -63,7 +63,6 @@
 #define IGC_ICRXATC            0x04108  /* Rx Absolute Timer Expire Count */
 #define IGC_ICTXPTC            0x0410C  /* Tx Packet Timer Expire Count */
 #define IGC_ICTXATC            0x04110  /* Tx Absolute Timer Expire Count */
-#define IGC_ICTXQEC            0x04118  /* Tx Queue Empty Count */
 #define IGC_ICTXQMTC           0x0411C  /* Tx Queue Min Threshold Count */
 #define IGC_ICRXDMTC           0x04120  /* Rx Descriptor Min Threshold Count */
 #define IGC_ICRXOC             0x04124  /* Receiver Overrun Count */
 #define IGC_IAC                0x04100  /* Interrupt Assertion Count */
 #define IGC_ICTXPTC    0x0410C  /* Interrupt Cause Tx Pkt Timer Expire Count */
 #define IGC_ICTXATC    0x04110  /* Interrupt Cause Tx Abs Timer Expire Count */
-#define IGC_ICTXQEC    0x04118  /* Interrupt Cause Tx Queue Empty Count */
 #define IGC_ICTXQMTC   0x0411C  /* Interrupt Cause Tx Queue Min Thresh Count */
 #define IGC_RPTHC      0x04104  /* Rx Packets To Host */
 #define IGC_TLPIC      0x04148  /* EEE Tx LPI Count */