From ef080e1f9bad884b95ef23307b0d856c971dfcc2 Mon Sep 17 00:00:00 2001 From: Simon Zhang Date: Wed, 16 Jan 2019 16:09:33 +0800 Subject: fix dpdk cryptodev enable issue Change-Id: I47d021522cfc92cfb3877449333cbf31022c06f4 Signed-off-by: Simon Zhang --- src/plugins/dpdk/ipsec/ipsec.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/plugins/dpdk') 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); -- cgit 1.2.3-korg 4 Vector Packet ProcessingGrokmirror user
summaryrefslogtreecommitdiffstats