HomeFreeBSD

LinuxKPI: 802.11: use an sx lock to protect the list of vifs

Description

LinuxKPI: 802.11: use an sx lock to protect the list of vifs

Use an sx lock to protect the list of vifs. We could use the
linux mutex compat for this but our current implementation may
re-acquire the lock recursively so allow this. The change is
mainly motivated by the fact that some callers may sleep in the
interator function called. Recursiveness is needed because we
see find_sta_by_ifaddr() being called from an iterator function
from iterate_interfaces().

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 8891c45563f8d3b657a876197c66e00e75214909)

Details

Provenance
bzAuthored on Apr 15 2022, 2:22 PM
Parents
rG836f54302e3f: ipfw: fix matching and setting DSCP value for IPv6
Branches
Unknown
Tags
Unknown