HomeFreeBSD

e6000sw: schedule e6000sw_tick() to occur once a second

Description

e6000sw: schedule e6000sw_tick() to occur once a second

Although all the machinery is present, the tick routine only ran once.
It was never rescheduled. So, reschedule it.

However in practice I've discovered that the tick routine is running
whilst a bunch of phys are actually being probe/attached on each per-port
MII bus being created and probed off of the switch itself.

Until that's debugged (and likely the whole PHY management stuff is
cleaned up here), just add a NULL check and thus don't panic.

Differential Revision: https://reviews.freebsd.org/D50031
Reviewed by: imp

Details

Provenance
adrianAuthored on Apr 25 2025, 6:44 PM
Reviewer
imp
Differential Revision
D50031: e6000sw: schedule e6000sw_tick() to occur once a second
Parents
rGee7f62faa893: e6000sw: stop / drain the taskqueue (and tick) during detach
Branches
Unknown
Tags
Unknown