fix dpdk cryptodev enable issue
@@ -1041,12 +1041,15 @@ dpdk_ipsec_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
}
- ipsec_register_esp_backend (vm, im, "dpdk backend",
+ 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);
+ 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);
