summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Zhang <yuwei1.zhang@intel.com>2019-01-16 16:09:33 +0800
committerSimon Zhang <yuwei1.zhang@intel.com>2019-03-13 06:43:49 +0000
commit295630deb6f0b8d1c131f6be3eedba4c7d209683 (patch)
tree8fd8cb32666c3d63013f8aaa1f09f8fde1e05a97
parentd0dcf768532534d67e0a65629ec51d6ee088344c (diff)
fix dpdk cryptodev enable issue
Change-Id: I47d021522cfc92cfb3877449333cbf31022c06f4 Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com> (cherry picked from commit ef080e1f9bad884b95ef23307b0d856c971dfcc2)
-rw-r--r--src/plugins/dpdk/ipsec/ipsec.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/plugins/dpdk/ipsec/ipsec.c b/src/plugins/dpdk/ipsec/ipsec.c
index 4910696fd81..f0832ae4549 100644
--- a/src/plugins/dpdk/ipsec/ipsec.c
+++ b/src/plugins/dpdk/ipsec/ipsec.c
@@ -1041,12 +1041,15 @@ dpdk_ipsec_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
}
- ipsec_register_esp_backend (vm, im, "dpdk backend",
- "dpdk-esp4-encrypt",
- "dpdk-esp4-decrypt",
- "dpdk-esp6-encrypt",
- "dpdk-esp6-decrypt",
- dpdk_ipsec_check_support, add_del_sa_session);
+ u32 idx = ipsec_register_esp_backend (vm, im, "dpdk backend",
+ "dpdk-esp4-encrypt",
+ "dpdk-esp4-decrypt",
+ "dpdk-esp6-encrypt",
+ "dpdk-esp6-decrypt",
+ dpdk_ipsec_check_support,
+ add_del_sa_session);
+ int rv = ipsec_select_esp_backend (im, idx);
+ ASSERT (rv);
vlib_node_t *node = vlib_get_node_by_name (vm, (u8 *) "dpdk-crypto-input");
ASSERT (node);