HomeFreeBSD

ng_l2tp: improve seq structure locking.

Description

ng_l2tp: improve seq structure locking.

Cover few cases of access to seq without lock missed in 702f98951d5.
There are no known bugs fixed with this change, however. With INVARIANTS
embed ng_l2tp_seq_check() into lock/unlock macros. Slightly reduce number
of locks/unlocks per packet keeping the lock between functions.

Reviewed by: mjg, markj
Differential Revision: https://reviews.freebsd.org/D31476

Details

Provenance
glebiusAuthored on Aug 6 2021, 10:49 PM
Reviewer
mjg
Differential Revision
D31476: Summary: ng_l2tp race fix + ng_uncallout improvements
Parents
rGb2954f0a8f7d: netgraph: add ng_uncallout_drain().
Branches
Unknown
Tags
Unknown