HomeFreeBSD

altq: Fix panics on rmc_restart()

Description

altq: Fix panics on rmc_restart()

rmc_restart() is called from a timer, but can trigger traffic. This
means the curvnet context will not be set.
Use the vnet associated with the interface we're currently processing to
set it. We also have to enter net_epoch here, for the same reason.

Reviewed by: mjg
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31642

Details

Provenance
kpAuthored on Aug 21 2021, 11:42 AM
Reviewer
mjg
Differential Revision
D31642: altq: Fix panics on rmc_restart()
Parents
rGe72e16c55df4: Remove bzero declaration
Branches
Unknown
Tags
Unknown