mempool/octeontx: fix natural alignment being optimized out
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Thu, 18 Jan 2018 13:44:33 +0000 (19:14 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jan 2018 23:43:56 +0000 (00:43 +0100)
commit9ac7f8e57290df0e1d3da6c33010feb5ccb66dfb
treec7d8855451b55a80631dd24adbcb9ed76bfee154
parent83a4f267f2e39fd2283944208c2f568597c93dd8
mempool/octeontx: fix natural alignment being optimized out

The mbox messages are naturally aligned and in some cases compiler
optimization might disregard natural alignment.
Use volatile key word to force compiler to disable optimizing and
maintain alignment.

Fixes: aecb8e093b52 ("event/octeontx: introduce specialized mbox message copy")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
drivers/mempool/octeontx/octeontx_mbox.c