Commit c000c930 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 98568f1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ struct spdk_reactor {
	struct rte_ring					*events;

	uint64_t					max_delay_us;
};
} __attribute__((aligned(64)));

static struct spdk_reactor g_reactors[RTE_MAX_LCORE];
static uint64_t	g_reactor_mask  = 0;