event: align spdk_reactor to cache line boundary

The reactor structures are allocated in a contiguous array, and each
reactor is accessed from a different core, so align the reactor
structure to avoid false sharing.

Change-Id: I95162620ccb58fae060b2d95e47a38621dfbd140
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-01-05 14:23:20 -07:00 committed by Jim Harris
parent 98568f1dab
commit c000c930b2

View File

@ -114,7 +114,7 @@ struct spdk_reactor {
struct rte_ring *events; struct rte_ring *events;
uint64_t max_delay_us; uint64_t max_delay_us;
}; } __attribute__((aligned(64)));
static struct spdk_reactor g_reactors[RTE_MAX_LCORE]; static struct spdk_reactor g_reactors[RTE_MAX_LCORE];
static uint64_t g_reactor_mask = 0; static uint64_t g_reactor_mask = 0;