The locking defines for if_bridge used to live in if_bridgevar.h, but
they're only ever used by the bridge implementation itself (in
if_bridge.c). Moving them into the .c file.
Sponsored by: The FreeBSD Foundation
Differential D23808
bridge: Move locking defines into if_bridge.c kp on Feb 23 2020, 5:31 PM. Authored by Tags None Referenced Files
Details
The locking defines for if_bridge used to live in if_bridgevar.h, but Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions Good idea. There should be no reason for the bridge locks to be manipulated elsewhere. Comment Actions It seems some of these macros should be fixed to respect style(9) and use tab instead of space after #define. Comment Actions I'm planning major changes to the bridge locking, so those macros are almost certainly going to be changed anyway. Moving them is a first step, to be doubly sure that they're not used in unexpected places. (And also, because the locking strategy really should be private to the bridge code). |