aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-10-23 15:50:52 +0100
committerSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-10-23 15:51:40 +0100
commit84568df69a68eef146354cf891beb4aa676a1350 (patch)
tree08944383cb2af72ffea117f9104118ef6c21cb17
parentc47652c50bd1dcf7492d5e991d99be284a0683fd (diff)
dpdk/ipsec: fix crypto device placement
VPP-1036 Change-Id: I96dae6a4a40c0142d03bdf750ef23c9ce5b6edfa Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
-rw-r--r--src/plugins/dpdk/ipsec/ipsec.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/dpdk/ipsec/ipsec.c b/src/plugins/dpdk/ipsec/ipsec.c
index c9fce3d8..7783171f 100644
--- a/src/plugins/dpdk/ipsec/ipsec.c
+++ b/src/plugins/dpdk/ipsec/ipsec.c
@@ -293,18 +293,12 @@ dpdk_ipsec_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
max_nb_qp = cdev_info.max_nb_queue_pairs;
- for (i = 0; i < tm->n_vlib_mains; i++)
+ for (i = skip_master; i < tm->n_vlib_mains; i++)
{
u8 is_outbound;
crypto_worker_main_t *cwm;
uword *map;
- if (skip_master)
- {
- skip_master = 0;
- continue;
- }
-
cwm = vec_elt_at_index (dcm->workers_main, i);
map = cwm->algo_qp_map;