aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2019-05-01 15:39:25 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-05-07 15:19:50 +0000
commitc74009dce1b2f1466112775a68a5608d754c7c76 (patch)
tree03e447fe706b28c01bc80975741c72d6582cc43b /src/plugins
parent7fa4160c471105b5738b46600ce335462d5d75aa (diff)
ipsec-mb: fix the "make test" on non-AESNI platforms
"make test" fails with invalid instruction on non-AESNI platform, so do not register the ipsec-mb crypto backend in this case. Change-Id: I61887e40ce3d39880e7da534b9dee00fd677d8fd Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/crypto_ipsecmb/ipsecmb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/crypto_ipsecmb/ipsecmb.c b/src/plugins/crypto_ipsecmb/ipsecmb.c
index 7a80b39da63..7495452eb29 100644
--- a/src/plugins/crypto_ipsecmb/ipsecmb.c
+++ b/src/plugins/crypto_ipsecmb/ipsecmb.c
@@ -478,6 +478,9 @@ crypto_ipsecmb_init (vlib_main_t * vm)
if ((error = vlib_call_init_function (vm, vnet_crypto_init)))
return error;
+ if (!clib_cpu_supports_aes ())
+ return 0;
+
/*
* A priority that is better than OpenSSL but worse than VPP natvie
*/