mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Enter net epoch in msk_tick.
One more instance of if_input being called outside of interrupt, by means of msk_handle_events. Differential Revision: https://reviews.freebsd.org/D23379
This commit is contained in:
parent
de27b30340
commit
8227d65b72
1 changed files with 3 additions and 0 deletions
|
|
@ -3374,6 +3374,7 @@ msk_txeof(struct msk_if_softc *sc_if, int idx)
|
|||
static void
|
||||
msk_tick(void *xsc_if)
|
||||
{
|
||||
struct epoch_tracker et;
|
||||
struct msk_if_softc *sc_if;
|
||||
struct mii_data *mii;
|
||||
|
||||
|
|
@ -3386,7 +3387,9 @@ msk_tick(void *xsc_if)
|
|||
mii_tick(mii);
|
||||
if ((sc_if->msk_flags & MSK_FLAG_LINK) == 0)
|
||||
msk_miibus_statchg(sc_if->msk_if_dev);
|
||||
NET_EPOCH_ENTER(et);
|
||||
msk_handle_events(sc_if->msk_softc);
|
||||
NET_EPOCH_EXIT(et);
|
||||
msk_watchdog(sc_if);
|
||||
callout_reset(&sc_if->msk_tick_ch, hz, msk_tick, sc_if);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue