diff options
author | sbruno <sbruno@FreeBSD.org> | 2015-05-22 17:01:43 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2015-05-22 17:01:43 +0000 |
commit | b15207d5c210e55bafbc6c85235ab64d12815e79 (patch) | |
tree | a3f404d9baf9db0283ac505b78995351e2879f68 /sys | |
parent | 655ffd2e35379d657938981f6e46e6758f8fc4be (diff) | |
download | FreeBSD-src-b15207d5c210e55bafbc6c85235ab64d12815e79.zip FreeBSD-src-b15207d5c210e55bafbc6c85235ab64d12815e79.tar.gz |
Bump rx_overruns when indicated by the ICR mask.
PR: 199716
MFC after: 3 days
Sponsored by: Limelight Networks
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/e1000/if_em.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c index 252571b..ab39c43 100644 --- a/sys/dev/e1000/if_em.c +++ b/sys/dev/e1000/if_em.c @@ -1609,6 +1609,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); |