]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading: shrink threadvars struct size
authorVictor Julien <victor@inliniac.net>
Mon, 11 Nov 2019 16:01:12 +0000 (17:01 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 7 Feb 2020 14:43:10 +0000 (15:43 +0100)
src/threadvars.h

index 355aab831b0ffcbc3da99202bb41f4bbc9b941de..3c468fbb480c30a76db79c189a40317adbb8ec79 100644 (file)
@@ -65,6 +65,8 @@ typedef struct ThreadVars_ {
     /** TmModule::flags for each module part of this thread */
     uint8_t tmm_flags;
 
+    uint8_t cap_flags; /**< Flags to indicate the capabilities of all the
+                            TmModules resgitered under this thread */
     /** local id */
     int id;
 
@@ -114,8 +116,6 @@ typedef struct ThreadVars_ {
     SCCtrlMutex *ctrl_mutex;
     SCCtrlCondT *ctrl_cond;
 
-    uint8_t cap_flags; /**< Flags to indicate the capabilities of all the
-                            TmModules resgitered under this thread */
     struct ThreadVars_ *next;
     struct ThreadVars_ *prev;
 } ThreadVars;