Hi Akhil,

PMD doesn't support sessionless with ASYM yet. Will make the suggested change 
in v2.

Thanks,
Anoob

> -----Original Message-----
> From: dev <[email protected]> On Behalf Of Akhil Goyal
> Sent: Tuesday, October 1, 2019 7:42 PM
> To: Anoob Joseph <[email protected]>; Pablo de Lara
> <[email protected]>; Thomas Monjalon <[email protected]>
> Cc: Sunila Sahu <[email protected]>; Jerin Jacob Kollanukkaran
> <[email protected]>; Narayana Prasad Raju Athreya
> <[email protected]>; Fiona Trahe <[email protected]>; Kanaka Durga
> Kotamarthy <[email protected]>; Shally Verma
> <[email protected]>; [email protected]
> Subject: Re: [dpdk-dev] [PATCH 4/6] crypto/octeontx2: add asymmetric in
> enqueue/dequeue ops
> 
> 
> Hi Anoob,
> 
> >  static __rte_always_inline int __hot
> >  otx2_cpt_enqueue_sym(struct otx2_cpt_qp *qp, struct rte_crypto_op *op,
> >                  struct pending_queue *pend_q)
> > @@ -488,7 +560,9 @@ otx2_cpt_enqueue_burst(void *qptr, struct
> > rte_crypto_op **ops, uint16_t nb_ops)
> >
> >     for (count = 0; count < nb_ops; count++) {
> >             op = ops[count];
> > -           if (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION)
> > +           if (op->type == RTE_CRYPTO_OP_TYPE_ASYMMETRIC)
> > +                   ret = otx2_cpt_enqueue_asym(qp, op, pend_q);
> > +           else if (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION)
> >                     ret = otx2_cpt_enqueue_sym(qp, op, pend_q);
> >             else if (op->sess_type == RTE_CRYPTO_OP_SESSIONLESS)
> >                     ret = otx2_cpt_enqueue_sym_sessless(qp, op, pend_q);
> 
> Do you support session less in asym case? If not, can we add a check here.
> 

Reply via email to