]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix autofp flow queue handler optimization
authorVictor Julien <victor@inliniac.net>
Thu, 21 Nov 2013 14:14:30 +0000 (15:14 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 21 Nov 2013 15:54:48 +0000 (16:54 +0100)
src/tmqh-flow.h

index b70e46ea3f1ee707c4b6b6756e6fa26ce705e004..a423f6679295720c5e06faa9c0bd566f0b949402 100644 (file)
 
 typedef struct TmqhFlowMode_ {
     PacketQueue *q;
-
+#if __WORDSIZE == 32
+    uint32_t pad1;
+#endif
     SC_ATOMIC_DECLARE(uint64_t, total_packets);
     SC_ATOMIC_DECLARE(uint64_t, total_flows);
-} TmqhFlowMode __attribute__((aligned(CLS)));
+    uint32_t pad[10];
+} TmqhFlowMode __attribute__((aligned(64)));
 
 /** \brief Ctx for the flow queue handler
  *  \param size number of queues to output to