[Bug 199716] em doesn't increment adapter->rx_overruns in msix mode

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 1 19:25:44 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199716

--- Comment #2 from Sean Bruno <sbruno at FreeBSD.org> ---
Index: if_em.c
===================================================================
--- if_em.c    (revision 282317)
+++ if_em.c    (working copy)
@@ -1609,6 +1609,9 @@
     ++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);


Should DTRT

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list