]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: aligned flow balance structures (used by autofp) to CLS to reduce false sharing
authorVictor Julien <victor@inliniac.net>
Thu, 21 Nov 2013 10:34:40 +0000 (11:34 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 21 Nov 2013 13:13:24 +0000 (14:13 +0100)
src/tmqh-flow.h

index adcc70eb84493d6490252e71fe682b6dda2102cf..b70e46ea3f1ee707c4b6b6756e6fa26ce705e004 100644 (file)
@@ -29,7 +29,7 @@ typedef struct TmqhFlowMode_ {
 
     SC_ATOMIC_DECLARE(uint64_t, total_packets);
     SC_ATOMIC_DECLARE(uint64_t, total_flows);
-} TmqhFlowMode;
+} TmqhFlowMode __attribute__((aligned(CLS)));
 
 /** \brief Ctx for the flow queue handler
  *  \param size number of queues to output to