[dpdk-dev] [PATCH 1/2] crypto/zuc: support IPSec Multi-buffer lib v0.54
De Lara Guarch, Pablo
pablo.de.lara.guarch at intel.com
Sun May 10 21:33:04 CEST 2020
Hi Akhil,
> -----Original Message-----
> From: Akhil Goyal <akhil.goyal at nxp.com>
> Sent: Saturday, May 9, 2020 8:05 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; dev at dpdk.org
> Subject: RE: [dpdk-dev] [PATCH 1/2] crypto/zuc: support IPSec Multi-buffer lib
> v0.54
>
> Hi Pablo,
>
> > +#if IMB_VERSION_NUM >= IMB_VERSION(0, 53, 3)
> > + processed_ops = process_zuc_hash_op_mb(qp, ops, sessions,
> > + num_ops);
> > +#else
> > processed_ops = process_zuc_hash_op(qp, ops, sessions,
> > num_ops);
> > +#endif
> > break;
>
> Instead of having a separate name for process_zuc_hash_op in case of newer
> IMB version, Is it not better to have same name of the function but having
> different definitions for different IMB version. This way you can reduce the #ifs
> in the code.
Good suggestion. Will send a v2 shortly.
Thanks,
Pablo
>
> Regards,
> Akhil
More information about the dev
mailing list