aesni_mb: fix strict-aliasing compilation rule
authorDeclan Doherty <declan.doherty@intel.com>
Mon, 15 Feb 2016 17:06:07 +0000 (17:06 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 24 Feb 2016 14:08:39 +0000 (15:08 +0100)
commit591f0e8bb04176aed1a3894d8605b0eb1e66a025
tree99c55d6a0f7c7a220cb1bc007c403a9f1d900a59
parenta324c45a6fc263a553768ba278629bce82a101f3
aesni_mb: fix strict-aliasing compilation rule

When compiling the AESNI_MB PMD with GCC 4.4.7 on Centos 6.7 a "dereferencing
pointer ‘obj_p’ does break strict-aliasing rules" warning occurs in the
get_session() function.

Fixes: 924e84f87306 ("aesni_mb: add driver for multi buffer based crypto")

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c