mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
pf: padalign global locks found in pf.c
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit f649cff587)
This commit is contained in:
parent
a65a227398
commit
8ef908c1d5
2 changed files with 6 additions and 6 deletions
|
|
@ -118,7 +118,7 @@ struct pfi_dynaddr {
|
|||
#define PF_STATE_LOCK_ASSERT(s) do {} while (0)
|
||||
#endif /* INVARIANTS */
|
||||
|
||||
extern struct mtx pf_unlnkdrules_mtx;
|
||||
extern struct mtx_padalign pf_unlnkdrules_mtx;
|
||||
#define PF_UNLNKDRULES_LOCK() mtx_lock(&pf_unlnkdrules_mtx)
|
||||
#define PF_UNLNKDRULES_UNLOCK() mtx_unlock(&pf_unlnkdrules_mtx)
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ extern struct rmlock pf_rules_lock;
|
|||
#define PF_RULES_RASSERT() rm_assert(&pf_rules_lock, RA_RLOCKED)
|
||||
#define PF_RULES_WASSERT() rm_assert(&pf_rules_lock, RA_WLOCKED)
|
||||
|
||||
extern struct mtx pf_table_stats_lock;
|
||||
extern struct mtx_padalign pf_table_stats_lock;
|
||||
#define PF_TABLE_STATS_LOCK() mtx_lock(&pf_table_stats_lock)
|
||||
#define PF_TABLE_STATS_UNLOCK() mtx_unlock(&pf_table_stats_lock)
|
||||
#define PF_TABLE_STATS_OWNED() mtx_owned(&pf_table_stats_lock)
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ STAILQ_HEAD(pf_send_head, pf_send_entry);
|
|||
VNET_DEFINE_STATIC(struct pf_send_head, pf_sendqueue);
|
||||
#define V_pf_sendqueue VNET(pf_sendqueue)
|
||||
|
||||
static struct mtx pf_sendqueue_mtx;
|
||||
static struct mtx_padalign pf_sendqueue_mtx;
|
||||
MTX_SYSINIT(pf_sendqueue_mtx, &pf_sendqueue_mtx, "pf send queue", MTX_DEF);
|
||||
#define PF_SENDQ_LOCK() mtx_lock(&pf_sendqueue_mtx)
|
||||
#define PF_SENDQ_UNLOCK() mtx_unlock(&pf_sendqueue_mtx)
|
||||
|
|
@ -200,18 +200,18 @@ VNET_DEFINE_STATIC(struct pf_overload_head, pf_overloadqueue);
|
|||
VNET_DEFINE_STATIC(struct task, pf_overloadtask);
|
||||
#define V_pf_overloadtask VNET(pf_overloadtask)
|
||||
|
||||
static struct mtx pf_overloadqueue_mtx;
|
||||
static struct mtx_padalign pf_overloadqueue_mtx;
|
||||
MTX_SYSINIT(pf_overloadqueue_mtx, &pf_overloadqueue_mtx,
|
||||
"pf overload/flush queue", MTX_DEF);
|
||||
#define PF_OVERLOADQ_LOCK() mtx_lock(&pf_overloadqueue_mtx)
|
||||
#define PF_OVERLOADQ_UNLOCK() mtx_unlock(&pf_overloadqueue_mtx)
|
||||
|
||||
VNET_DEFINE(struct pf_krulequeue, pf_unlinked_rules);
|
||||
struct mtx pf_unlnkdrules_mtx;
|
||||
struct mtx_padalign pf_unlnkdrules_mtx;
|
||||
MTX_SYSINIT(pf_unlnkdrules_mtx, &pf_unlnkdrules_mtx, "pf unlinked rules",
|
||||
MTX_DEF);
|
||||
|
||||
struct mtx pf_table_stats_lock;
|
||||
struct mtx_padalign pf_table_stats_lock;
|
||||
MTX_SYSINIT(pf_table_stats_lock, &pf_table_stats_lock, "pf table stats",
|
||||
MTX_DEF);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue