> @@ -908,7 +907,11 @@ ipsec_enqueue(ipsec_xform_fn xform_func, struct
> ipsec_ctx *ipsec_ctx,
>                       continue;
>               }
> 
> -             enqueue_cop(sa->cqp[ipsec_ctx->lcore_id], &priv->cop);
> +             if (sa->cqp[ipsec_ctx->lcore_id])
> +                     enqueue_cop(sa->cqp[ipsec_ctx->lcore_id], &priv->cop);
> +             else
> +                     RTE_LOG(ERR, IPSEC, "No CQP available for lcore %d\n",
> +                                     ipsec_ctx->lcore_id);

Can we add likely here?

Reply via email to