keepalive: fix state alignment
authorAndriy Berestovskyy <aber@semihalf.com>
Tue, 23 Jan 2018 15:43:16 +0000 (16:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Jan 2018 22:25:57 +0000 (23:25 +0100)
commit462d9189374f582166ff77b8c301b89947d016cc
treecc53f1e0debd9a913452bedaaf7e886985498680
parent0bf876008f4e51d8c006a3adb3866f0c35c33fbb
keepalive: fix state alignment

The __rte_cache_aligned was applied to the whole array,
not the array elements. This leads to a false sharing between
the monitored cores.

Fixes: e70a61ad50ab ("keepalive: export states")
Cc: stable@dpdk.org
Signed-off-by: Andriy Berestovskyy <aber@semihalf.com>
Acked-by: Remy Horton <remy.horton@intel.com>
doc/guides/sample_app_ug/keep_alive.rst
lib/librte_eal/common/rte_keepalive.c