Skip to content

Commit 421da00

Browse files
author
Matthew Macy
committed
don't update stats counters in swi context
1 parent 5437e31 commit 421da00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sys/dev/e1000/if_em.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,9 +1668,7 @@ em_if_timer(if_ctx_t ctx, uint16_t qid)
16681668
if (qid != 0)
16691669
return;
16701670

1671-
em_if_update_admin_status(ctx);
1672-
em_update_stats_counters(adapter);
1673-
1671+
iflib_admin_intr_deferred(ctx);
16741672
/* Reset LAA into RAR[0] on 82571 */
16751673
if ((adapter->hw.mac.type == e1000_82571) &&
16761674
e1000_get_laa_state_82571(&adapter->hw))
@@ -1786,6 +1784,7 @@ em_if_update_admin_status(if_ctx_t ctx)
17861784
iflib_link_state_change(ctx, LINK_STATE_DOWN, ifp->if_baudrate);
17871785
printf("link state changed to down\n");
17881786
}
1787+
em_update_stats_counters(adapter);
17891788

17901789
E1000_WRITE_REG(&adapter->hw, E1000_IMS, EM_MSIX_LINK | E1000_IMS_LSC);
17911790
}

0 commit comments

Comments
 (0)