aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bge/if_bgereg.h
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2012-03-12 03:47:30 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2012-03-12 03:47:30 +0000
commit37ee7cc71983e035751db4ec33e16349ad41ded0 (patch)
treec1f1a5b746b2969f3dbec1a0a8d7bc84750df107 /sys/dev/bge/if_bgereg.h
parentea9c3a30f3bd1e6390209d510c5138794497e141 (diff)
downloadsrc-37ee7cc71983e035751db4ec33e16349ad41ded0.tar.gz
src-37ee7cc71983e035751db4ec33e16349ad41ded0.zip
Make if_ierrors updated whenever any of the following counters are
updated. o Number of times NIC ran out of RX buffer descriptors o Number of inbound packet errors o Number of inbound packets that were chosen to be discarded Previously only the discarded packet counter was used to update if_ierrors. This change fixes wrong if_ierrors counter on BCM570[0-4] controllers. For BCM5705 and later controllers bge(4) already correctly counted it. Reported by: Eugene Grosbein <egrosbein <> rdtc dot ru>
Notes
Notes: svn path=/head/; revision=232850
Diffstat (limited to 'sys/dev/bge/if_bgereg.h')
-rw-r--r--sys/dev/bge/if_bgereg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bge/if_bgereg.h b/sys/dev/bge/if_bgereg.h
index a3fd2b5c5f03..8a58b85d62de 100644
--- a/sys/dev/bge/if_bgereg.h
+++ b/sys/dev/bge/if_bgereg.h
@@ -2861,6 +2861,8 @@ struct bge_softc {
int bge_csum_features;
struct callout bge_stat_ch;
uint32_t bge_rx_discards;
+ uint32_t bge_rx_inerrs;
+ uint32_t bge_rx_nobds;
uint32_t bge_tx_discards;
uint32_t bge_tx_collisions;
#ifdef DEVICE_POLLING