crypto/octeontx2: fix IPsec session member overlap
authorAnoob Joseph <anoobj@marvell.com>
Tue, 13 Jul 2021 10:27:06 +0000 (15:57 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 20 Jul 2021 08:32:05 +0000 (10:32 +0200)
commit40beec4bf4e37327437dbcf0e9991a48ed369848
tree49ebe4eac9d9e34d6ba4515d8f1dba1c7ffd4c4a
parent52008104e9a644853aa379e0745774b6ffe1c74c
crypto/octeontx2: fix IPsec session member overlap

The member 'dir' should not overlap with 'ip'. Usage of union for all
members would mean dir would get corrupt.

Fixes: e91b4f45ff54 ("net/octeontx2: support anti-replay for security session")
Cc: stable@dpdk.org
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/octeontx2/otx2_security.h