diff options
author | Simon Zhang <yuwei1.zhang@intel.com> | 2019-01-16 16:09:33 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-01-16 18:32:44 +0000 |
commit | ef080e1f9bad884b95ef23307b0d856c971dfcc2 (patch) | |
tree | ad9c4b7e6c27ff202015c19a21d164bf513f3fe3 /src | |
parent | f5641398aebec2a73ac387a6327e54b43c26d158 (diff) |
fix dpdk cryptodev enable issuev19.04-rc0
Change-Id: I47d021522cfc92cfb3877449333cbf31022c06f4
Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/dpdk/ipsec/ipsec.c | 15 |
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); |