diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-08-30 17:49:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-03 22:21:16 -0400 |
commit | d2a5128fbc30480763bbb8a43ec7c8161c1bf055 (patch) | |
tree | 5fedf909e198fc398ed5b9b6fb77f2ccb8ac8685 | |
parent | 2ee68f621af280c37a6bd72fe75e47de0750f301 (diff) |
net: calxedaxgmac: remove some unused statistic counters
rx_sa_filter_fail and tx_undeflow events are unused and impossible
to occur based on how the h/w is used. We never filter on source MAC
address and TX store and forward mode prevents underflow events.
Reported-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/calxeda/xgmac.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/calxeda/xgmac.c b/drivers/net/ethernet/calxeda/xgmac.c index 0cff9e3e0cb7..04c585ce9bfb 100644 --- a/drivers/net/ethernet/calxeda/xgmac.c +++ b/drivers/net/ethernet/calxeda/xgmac.c | |||
@@ -353,11 +353,9 @@ struct xgmac_extra_stats { | |||
353 | /* Receive errors */ | 353 | /* Receive errors */ |
354 | unsigned long rx_watchdog; | 354 | unsigned long rx_watchdog; |
355 | unsigned long rx_da_filter_fail; | 355 | unsigned long rx_da_filter_fail; |
356 | unsigned long rx_sa_filter_fail; | ||
357 | unsigned long rx_payload_error; | 356 | unsigned long rx_payload_error; |
358 | unsigned long rx_ip_header_error; | 357 | unsigned long rx_ip_header_error; |
359 | /* Tx/Rx IRQ errors */ | 358 | /* Tx/Rx IRQ errors */ |
360 | unsigned long tx_undeflow; | ||
361 | unsigned long tx_process_stopped; | 359 | unsigned long tx_process_stopped; |
362 | unsigned long rx_buf_unav; | 360 | unsigned long rx_buf_unav; |
363 | unsigned long rx_process_stopped; | 361 | unsigned long rx_process_stopped; |
@@ -1581,7 +1579,6 @@ static const struct xgmac_stats xgmac_gstrings_stats[] = { | |||
1581 | XGMAC_STAT(rx_payload_error), | 1579 | XGMAC_STAT(rx_payload_error), |
1582 | XGMAC_STAT(rx_ip_header_error), | 1580 | XGMAC_STAT(rx_ip_header_error), |
1583 | XGMAC_STAT(rx_da_filter_fail), | 1581 | XGMAC_STAT(rx_da_filter_fail), |
1584 | XGMAC_STAT(rx_sa_filter_fail), | ||
1585 | XGMAC_STAT(fatal_bus_error), | 1582 | XGMAC_STAT(fatal_bus_error), |
1586 | XGMAC_HW_STAT(rx_watchdog, XGMAC_MMC_RXWATCHDOG), | 1583 | XGMAC_HW_STAT(rx_watchdog, XGMAC_MMC_RXWATCHDOG), |
1587 | XGMAC_HW_STAT(tx_vlan, XGMAC_MMC_TXVLANFRAME), | 1584 | XGMAC_HW_STAT(tx_vlan, XGMAC_MMC_TXVLANFRAME), |