diff options
author | Sean Bruno <sbruno@FreeBSD.org> | 2017-07-21 17:42:54 +0000 |
---|---|---|
committer | Sean Bruno <sbruno@FreeBSD.org> | 2017-07-21 17:42:54 +0000 |
commit | 5eedcb096933798f060555ac6bd197b15a964996 (patch) | |
tree | dd4f5bccade909e144ad5e14b7acf5512050a992 /sys/dev/e1000 | |
parent | b1a987bb34e6de7847a53afda92a43cd089e459f (diff) | |
download | src-5eedcb096933798f060555ac6bd197b15a964996.tar.gz src-5eedcb096933798f060555ac6bd197b15a964996.zip |
Do not update stats counter in SWI context. Defer to the already existing
admin thread.
Submitted by: Matt Macy <mmacy@mattmacy.io>
Sponsored by: Limelight Networks
Notes
Notes:
svn path=/head/; revision=321336
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r-- | sys/dev/e1000/if_em.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c index 5202c4367a6f..ed6da9d9517b 100644 --- a/sys/dev/e1000/if_em.c +++ b/sys/dev/e1000/if_em.c @@ -1663,9 +1663,7 @@ em_if_timer(if_ctx_t ctx, uint16_t qid) if (qid != 0) return; - em_if_update_admin_status(ctx); - em_update_stats_counters(adapter); - + iflib_admin_intr_deferred(ctx); /* Reset LAA into RAR[0] on 82571 */ if ((adapter->hw.mac.type == e1000_82571) && e1000_get_laa_state_82571(&adapter->hw)) @@ -1781,6 +1779,7 @@ em_if_update_admin_status(if_ctx_t ctx) iflib_link_state_change(ctx, LINK_STATE_DOWN, ifp->if_baudrate); printf("link state changed to down\n"); } + em_update_stats_counters(adapter); E1000_WRITE_REG(&adapter->hw, E1000_IMS, EM_MSIX_LINK | E1000_IMS_LSC); } |