fix rte_crypto_ipsec_mb dependency 61/74061/1
authorLuc Provoost <luc.provoost@gmail.com>
Sat, 1 Jul 2023 11:12:31 +0000 (13:12 +0200)
committerLuc Provoost <luc.provoost@gmail.com>
Sat, 1 Jul 2023 11:12:31 +0000 (13:12 +0200)
In order to use the cryptodev API, the rte_crypto_ipsec_mb library needs
to be installed. When that library is installed, the change in
meson.build will now make sure that handle_esp.c is also compiled, and
the 2 PROX modes (esp_enc & esp_dec) become available for use in the
PROX config files.

Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: Ida7f742cd3189437f25fc5e45cf48ba0d20ba7d1

VNFs/DPPD-PROX/meson.build

index 15a5569..48251e8 100644 (file)
@@ -178,7 +178,8 @@ sources = files(
 sources += files('rw_reg.c')
 
 # Include a couple of source files depending on DPDK support
-if cc.find_library('rte_pmd_aesni', required: false).found()
+if cc.find_library('rte_crypto_ipsec_mb', required: false).found()
+       add_project_arguments('-DRTE_LIBRTE_PMD_AESNI_MB',  language: 'c')
        sources += files('handle_esp.c')
 else
        warning('Building w/o IPSEC support')