Skip to content

Commit db02bee

Browse files
aneftinanguy11
authored andcommitted
igc: Clean up the hw_stats structure
Remove ictxptc, ictxatc, cbtmpc, cbrdpc, cbrmpc and htcbdpc fields from the hw_stats structure. Accordance to the i225 device specification these fields not in use. This patch come to clean up the driver code. Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 4a9e9b8 commit db02bee

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

drivers/net/ethernet/intel/igc/igc_hw.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,9 @@ struct igc_hw_stats {
268268
u64 tsctc;
269269
u64 tsctfc;
270270
u64 iac;
271-
u64 ictxptc;
272-
u64 ictxatc;
273-
u64 cbtmpc;
274271
u64 htdpmc;
275-
u64 cbrdpc;
276-
u64 cbrmpc;
277272
u64 rpthc;
278273
u64 hgptc;
279-
u64 htcbdpc;
280274
u64 hgorc;
281275
u64 hgotc;
282276
u64 lenerrs;

drivers/net/ethernet/intel/igc/igc_mac.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,6 @@ void igc_clear_hw_cntrs_base(struct igc_hw *hw)
296296

297297
rd32(IGC_IAC);
298298

299-
rd32(IGC_ICTXPTC);
300-
rd32(IGC_ICTXATC);
301-
302299
rd32(IGC_RPTHC);
303300
rd32(IGC_TLPIC);
304301
rd32(IGC_RLPIC);

drivers/net/ethernet/intel/igc/igc_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,8 +3730,6 @@ void igc_update_stats(struct igc_adapter *adapter)
37303730
adapter->stats.tsctc += rd32(IGC_TSCTC);
37313731

37323732
adapter->stats.iac += rd32(IGC_IAC);
3733-
adapter->stats.ictxptc += rd32(IGC_ICTXPTC);
3734-
adapter->stats.ictxatc += rd32(IGC_ICTXATC);
37353733

37363734
/* Fill out the OS statistics structure */
37373735
net_stats->multicast = adapter->stats.mprc;

drivers/net/ethernet/intel/igc/igc_regs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@
172172
#define IGC_BPTC 0x040F4 /* Broadcast Packets Tx Count - R/clr */
173173
#define IGC_TSCTC 0x040F8 /* TCP Segmentation Context Tx - R/clr */
174174
#define IGC_IAC 0x04100 /* Interrupt Assertion Count */
175-
#define IGC_ICTXPTC 0x0410C /* Interrupt Cause Tx Pkt Timer Expire Count */
176-
#define IGC_ICTXATC 0x04110 /* Interrupt Cause Tx Abs Timer Expire Count */
177175
#define IGC_RPTHC 0x04104 /* Rx Packets To Host */
178176
#define IGC_TLPIC 0x04148 /* EEE Tx LPI Count */
179177
#define IGC_RLPIC 0x0414C /* EEE Rx LPI Count */

0 commit comments

Comments
 (0)