summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-11-08 01:30:35 +0000
committeryongari <yongari@FreeBSD.org>2009-11-08 01:30:35 +0000
commitd5d20b09edacf38fd23cb4123a97f20c7a8f0bda (patch)
treeb83d45d23f0e86e28180f2d3bcf0b1caf53b43dd /sys/dev
parent3c96eca4ff6a3f12c615f51fcb286682037fc190 (diff)
downloadFreeBSD-src-d5d20b09edacf38fd23cb4123a97f20c7a8f0bda.zip
FreeBSD-src-d5d20b09edacf38fd23cb4123a97f20c7a8f0bda.tar.gz
Count number of inbound packets which were chosen to be discarded
as input errors. Also count out of receive BDs as input errors.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 8308801..f2352a9 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -3547,7 +3547,9 @@ bge_stats_update_regs(struct bge_softc *sc)
ifp->if_collisions += CSR_READ_4(sc, BGE_MAC_STATS +
offsetof(struct bge_mac_stats_regs, etherStatsCollisions));
+ ifp->if_ierrors += CSR_READ_4(sc, BGE_RXLP_LOCSTAT_OUT_OF_BDS);
ifp->if_ierrors += CSR_READ_4(sc, BGE_RXLP_LOCSTAT_IFIN_DROPS);
+ ifp->if_ierrors += CSR_READ_4(sc, BGE_RXLP_LOCSTAT_IFIN_ERRORS);
}
static void
OpenPOWER on IntegriCloud