From ce120d492779b8a650300ed715fbc0a72039045a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 21 Nov 2013 11:34:40 +0100 Subject: [PATCH] flow: aligned flow balance structures (used by autofp) to CLS to reduce false sharing --- src/tmqh-flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmqh-flow.h b/src/tmqh-flow.h index adcc70eb84..b70e46ea3f 100644 --- a/src/tmqh-flow.h +++ b/src/tmqh-flow.h @@ -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