]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ng_l2tp: improve seq structure locking.
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 6 Aug 2021 22:49:51 +0000 (15:49 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 10 Sep 2021 18:27:13 +0000 (11:27 -0700)
commit0a76c63dd4987d8f7af37fe93569ce8a020cf43e
treef5d375ffaf9f756577ba9663bb9fedee112d3431
parentb2954f0a8f7db160053555d4ad86ce3abf036077
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
sys/netgraph/ng_l2tp.c