svn commit: r199036 - head/sys/dev/bge

Pyun YongHyeon yongari at FreeBSD.org
Sun Nov 8 01:30:35 UTC 2009


Author: yongari
Date: Sun Nov  8 01:30:35 2009
New Revision: 199036
URL: http://svn.freebsd.org/changeset/base/199036

Log:
  Count number of inbound packets which were chosen to be discarded
  as input errors. Also count out of receive BDs as input errors.

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Sun Nov  8 01:13:38 2009	(r199035)
+++ head/sys/dev/bge/if_bge.c	Sun Nov  8 01:30:35 2009	(r199036)
@@ -3547,7 +3547,9 @@ bge_stats_update_regs(struct bge_softc *
 	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


More information about the svn-src-all mailing list