git: 440c90da04c8 - stable/13 - pf: shrink struct pf_kstate
Mateusz Guzik
mjg at FreeBSD.org
Sun Jul 25 07:03:07 UTC 2021
The branch stable/13 has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=440c90da04c8a338d9ff96c30989cb5619206e48
commit 440c90da04c8a338d9ff96c30989cb5619206e48
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-07-19 12:35:31 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-07-25 07:00:32 +0000
pf: shrink struct pf_kstate
Makes room for a pointer.
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 9009d36afd1e0107e1e5b6988f49436087b3d474)
---
sys/net/pfvar.h | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index f1d085bba664..609709fbd6c5 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -589,6 +589,10 @@ struct pf_kstate {
* end of the area
*/
+ u_int8_t state_flags;
+ u_int8_t timeout;
+ u_int8_t sync_state; /* PFSYNC_S_x */
+ u_int8_t sync_updates; /* XXX */
u_int refs;
TAILQ_ENTRY(pf_kstate) sync_list;
TAILQ_ENTRY(pf_kstate) key_list[2];
@@ -612,13 +616,6 @@ struct pf_kstate {
u_int32_t pfsync_time;
u_int16_t tag;
u_int8_t log;
- u_int8_t state_flags;
- u_int8_t timeout;
- u_int8_t sync_state; /* PFSYNC_S_x */
-
- /* XXX */
- u_int8_t sync_updates;
- u_int8_t _tail[3];
};
/*
More information about the dev-commits-src-all
mailing list