crypto/aesni_mb: use architecture independent macros
authorFan Zhang <roy.fan.zhang@intel.com>
Thu, 20 Dec 2018 11:56:44 +0000 (11:56 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 10 Jan 2019 15:57:22 +0000 (16:57 +0100)
commitc68d7aa354f6935e6f054fe7ced26c47d27cd420
tree078e39a23a2c5a80f3bbddcbf901a195fbaf8518
parente82d0df613428b6572bf80297c99e25a74e9c7fb
crypto/aesni_mb: use architecture independent macros

This patch duplicates the original rte_aesni_mb_pmd*.c files and replaces
the function calls provided by intel-ipsec-mb library into
architecture-independent macros. The build systems are updated to choose
compiling either rte_aesni_mb_pmd*.c or rte_aesni_mb_pmd*_compat.c based
on the installed intel-ipsec-mb version. For the intel-ipsec-mb older
than 0.52.0 rte_aesni_mb_pmd*_compat.c will be compiled, otherwise
rte_aesni_mb_pmd*.c will be compiled.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>
Acked-by: Damian Nowak <damianx.nowak@intel.com>
drivers/crypto/aesni_mb/Makefile
drivers/crypto/aesni_mb/meson.build
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c [new file with mode: 0644]
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c [new file with mode: 0644]
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h