Author: sbruno
Date: Mon May 25 00:30:26 2015
New Revision: 283504
URL: https://svnweb.freebsd.org/changeset/base/283504

Log:
  MFC r283290
  
  Bump rx_overruns when indicated by the ICR mask.
  
  PR:           199716
  Sponsored by: Limelight Networks

Modified:
  stable/10/sys/dev/e1000/if_em.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/e1000/if_em.c
==============================================================================
--- stable/10/sys/dev/e1000/if_em.c     Sun May 24 23:53:10 2015        
(r283503)
+++ stable/10/sys/dev/e1000/if_em.c     Mon May 25 00:30:26 2015        
(r283504)
@@ -1620,6 +1620,9 @@ em_msix_link(void *arg)
        ++adapter->link_irq;
        reg_icr = E1000_READ_REG(&adapter->hw, E1000_ICR);
 
+       if (reg_icr & E1000_ICR_RXO)
+               adapter->rx_overruns++;
+
        if (reg_icr & (E1000_ICR_RXSEQ | E1000_ICR_LSC)) {
                adapter->hw.mac.get_link_status = 1;
                em_handle_link(adapter, 0);
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to