Skip to content

Commit 3b5fc88

Browse files
aneftinJeff Kirsher
authored andcommitted
igc: Remove obsolete circuit breaker registers
Part of circuit breaker registers is obsolete and not applicable for i225 device. This patch comes to clean up these registers. Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 49ee3c2 commit 3b5fc88

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,8 @@ void igc_clear_hw_cntrs_base(struct igc_hw *hw)
307307
rd32(IGC_ICTXQMTC);
308308
rd32(IGC_ICRXDMTC);
309309

310-
rd32(IGC_CBTMPC);
311-
rd32(IGC_HTDPMC);
312-
rd32(IGC_CBRMPC);
313310
rd32(IGC_RPTHC);
314311
rd32(IGC_HGPTC);
315-
rd32(IGC_HTCBDPC);
316312
rd32(IGC_HGORCL);
317313
rd32(IGC_HGORCH);
318314
rd32(IGC_HGOTCL);

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@
6868
#define IGC_ICRXDMTC 0x04120 /* Rx Descriptor Min Threshold Count */
6969
#define IGC_ICRXOC 0x04124 /* Receiver Overrun Count */
7070

71-
#define IGC_CBTMPC 0x0402C /* Circuit Breaker TX Packet Count */
72-
#define IGC_HTDPMC 0x0403C /* Host Transmit Discarded Packets */
73-
#define IGC_CBRMPC 0x040FC /* Circuit Breaker RX Packet Count */
74-
#define IGC_RPTHC 0x04104 /* Rx Packets To Host */
75-
#define IGC_HGPTC 0x04118 /* Host Good Packets TX Count */
76-
#define IGC_HTCBDPC 0x04124 /* Host TX Circ.Breaker Drop Count */
77-
7871
/* MSI-X Table Register Descriptions */
7972
#define IGC_PBACL 0x05B68 /* MSIx PBA Clear - R/W 1 to clear */
8073

0 commit comments

Comments
 (0)