Don't count RX overruns and missed packets as inputs errors. They're expected to
increment when using MCLGETI.

OK?


Index: if_em.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.275
diff -u -p -u -p -r1.275 if_em.c
--- if_em.c     28 Dec 2013 03:34:54 -0000      1.275
+++ if_em.c     31 Dec 2013 06:03:55 -0000
@@ -3246,9 +3248,9 @@ em_update_stats_counters(struct em_softc
            sc->stats.rxerrc +
            sc->stats.crcerrs +
            sc->stats.algnerrc +
-           sc->stats.ruc + sc->stats.roc +
-           sc->stats.mpc + sc->stats.cexterr +
-           sc->rx_overruns;
+           sc->stats.ruc +
+           sc->stats.roc +
+           sc->stats.cexterr;
 
        /* Tx Errors */
        ifp->if_oerrors = sc->stats.ecol + sc->stats.latecol +

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to