From: Victor Julien Date: Thu, 21 Nov 2013 14:14:30 +0000 (+0100) Subject: Fix autofp flow queue handler optimization X-Git-Tag: suricata-2.0beta2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e392c0a4ce782e53a66355a30235c385500ce3dd;p=thirdparty%2Fsuricata.git Fix autofp flow queue handler optimization --- diff --git a/src/tmqh-flow.h b/src/tmqh-flow.h index b70e46ea3f..a423f66792 100644 --- a/src/tmqh-flow.h +++ b/src/tmqh-flow.h @@ -26,10 +26,13 @@ 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