summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Zhang <yuwei1.zhang@intel.com>2019-01-17 10:32:48 +0800
committerNeale Ranns <nranns@cisco.com>2019-01-17 10:13:30 +0000
commita704f5b2a97346eaaeec466cda6169406a313490 (patch)
tree03b6efe3196caa6e0c5faa3545c8ca3e7b025479
parent6dd5e340eaa0b1e58e12304d1da3daa3d1176c5b (diff)
Fix ASSERT usage issue in cryptodev
Change-Id: I764c6565f96e0cb9078503e54e3cf3bb3fd9ff3f Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
-rw-r--r--src/plugins/dpdk/ipsec/ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/ipsec/ipsec.c b/src/plugins/dpdk/ipsec/ipsec.c
index f0832ae4549..ade454f22cc 100644
--- a/src/plugins/dpdk/ipsec/ipsec.c
+++ b/src/plugins/dpdk/ipsec/ipsec.c
@@ -1049,7 +1049,7 @@ dpdk_ipsec_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
dpdk_ipsec_check_support,
add_del_sa_session);
int rv = ipsec_select_esp_backend (im, idx);
- ASSERT (rv);
+ ASSERT (rv == 0);
vlib_node_t *node = vlib_get_node_by_name (vm, (u8 *) "dpdk-crypto-input");
ASSERT (node);