Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7fa4160
)
ipsec-mb: fix the "make test" on non-AESNI platforms
90/19290/3
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Wed, 1 May 2019 13:39:25 +0000
(15:39 +0200)
committer
Dave Wallace
<dwallacelf@gmail.com>
Tue, 7 May 2019 15:19:50 +0000
(15:19 +0000)
"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>
src/plugins/crypto_ipsecmb/ipsecmb.c
patch
|
blob
|
history
diff --git
a/src/plugins/crypto_ipsecmb/ipsecmb.c
b/src/plugins/crypto_ipsecmb/ipsecmb.c
index
7a80b39
..
7495452
100644
(file)
--- 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
*/