From 36102c5b07ccc96507ebee324132f8ba73a44aa2 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 1 May 2019 15:39:25 +0200 Subject: 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 (cherry picked from commit c74009dce1b2f1466112775a68a5608d754c7c76) --- src/plugins/crypto_ipsecmb/ipsecmb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/crypto_ipsecmb/ipsecmb.c b/src/plugins/crypto_ipsecmb/ipsecmb.c index 499e269f02a..765b03a51cd 100644 --- a/src/plugins/crypto_ipsecmb/ipsecmb.c +++ b/src/plugins/crypto_ipsecmb/ipsecmb.c @@ -523,6 +523,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 */ -- cgit 1.2.3-korg