crypto: not use vec api with opt_data[VNET_CRYPTO_N_OP_IDS]
[vpp.git] / src / vnet / crypto / crypto.c
index 4da8a14..c465f14 100644 (file)
@@ -118,7 +118,7 @@ vnet_crypto_set_handler (char *alg_name, char *engine)
       vnet_crypto_op_id_t id = ad->op_by_type[i];
       if (id == 0)
        continue;
-      od = vec_elt_at_index (cm->opt_data, id);
+      od = cm->opt_data + id;
       if (ce->ops_handlers[id])
        {
          od->active_engine_index = p[0];