]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/test/tun_aesgcm_inline_crypto_fallback_defs.sh
examples/ipsec-secgw: enable CPU crypto fallback
[dpdk.git] / examples / ipsec-secgw / test / tun_aesgcm_inline_crypto_fallback_defs.sh
index 6968484323c2b339384d7b9cf6ba201388fd8bbe..e098bd3a717f4aa9a288bed0e71358ffdfb64c08 100644 (file)
@@ -1,5 +1,10 @@
 #! /bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
 
 . ${DIR}/tun_aesgcm_defs.sh
 
-SGW_CFG_XPRM_IN='port_id 0 type inline-crypto-offload fallback lookaside-none'
+if [[ -z "${CRYPTO_FLBK_TYPE}" ]]; then
+       CRYPTO_FLBK_TYPE="fallback lookaside-none"
+fi
+
+SGW_CFG_XPRM_IN="port_id 0 type inline-crypto-offload ${CRYPTO_FLBK_TYPE}"