Hi Akhil, Please see inline.
Thanks Tejasree > -----Original Message----- > From: Akhil Goyal <[email protected]> > Sent: Thursday, July 2, 2020 2:37 AM > To: Tejasree Kondoj <[email protected]>; Radu Nicolau > <[email protected]> > Cc: Narayana Prasad Raju Athreya <[email protected]>; Anoob Joseph > <[email protected]>; Vamsi Krishna Attunuru <[email protected]>; > [email protected] > Subject: [EXT] RE: [PATCH 4/8] crypto/octeontx2: add cryptodev sec > capabilities > > External Email > > ---------------------------------------------------------------------- > > +static const struct rte_cryptodev_capabilities * > > +otx2_cpt_sec_caps_get(union cpt_eng_caps *hw_caps) { > > + SEC_CAPS_ADD(hw_caps, aes); > > + > > + sec_caps_add(caps_end, RTE_DIM(caps_end)); > > + > > + return otx2_cpt_sec_caps; > > +} > SEC_CAPS_ADD should be called earlier when the security context is created > Or where all other capabilities of the PMD are initialized. > It should not be added when capabilities need to be retrieved. > As of now you are supporting only AES-GCM, but in future if you add more > algos, Then it would be difficult to manage. [Tejasree] We will initialize capabilities during probe and capabilities_get() would return pointer. Would that work?

