[dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-09-24 Thread Fan Zhang
This patch adds raw data-path APIs for enqueue and dequeue operations to cryptodev. The APIs support flexible user-define enqueue and dequeue behaviors. Signed-off-by: Fan Zhang Signed-off-by: Piotr Bronowski --- doc/guides/prog_guide/cryptodev_lib.rst | 93 + doc/guides/rel_notes/re

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-10-08 Thread Akhil Goyal
Hi Fan, > > This patch adds raw data-path APIs for enqueue and dequeue > operations to cryptodev. The APIs support flexible user-define > enqueue and dequeue behaviors. > > Signed-off-by: Fan Zhang > Signed-off-by: Piotr Bronowski > --- > doc/guides/prog_guide/cryptodev_lib.rst | 93 ++

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-10-08 Thread Akhil Goyal
> +/** > + * Start processing all enqueued descriptors from last > + * rte_cryptodev_raw_configure_dp_context() call. > + * > + * @paramctx The initialized raw data-path context data. > + * @paramn The total number of submitted descriptors. > + What does this API return? Check fo

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-10-08 Thread Zhang, Roy Fan
Hi Akhil, Thanks a lot for the review. Comments inline. Regards, Fan > -Original Message- > From: Akhil Goyal > Sent: Thursday, October 8, 2020 3:26 PM > To: Zhang, Roy Fan ; dev@dpdk.org > Cc: Trahe, Fiona ; Kusztal, ArkadiuszX > ; Dybkowski, AdamX > ; ano...@marvell.com; Ananyev, Kons

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-10-08 Thread Akhil Goyal
> > > +During the enqueue, the cryptodev driver only sets the enqueued > > descriptors > > > +into the device queue but not initiates the device to start processing > > > them. > > > +The temporary queue pair data changes in relation to the enqueued > > descriptors > > > +may be recorded in the ``

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-10-08 Thread Zhang, Roy Fan
Hi, Good idea. Will do. > -Original Message- > From: Akhil Goyal > Sent: Thursday, October 8, 2020 5:08 PM > To: Zhang, Roy Fan ; dev@dpdk.org > Cc: Trahe, Fiona ; Kusztal, ArkadiuszX > ; Dybkowski, AdamX > ; ano...@marvell.com; Ananyev, Konstantin > ; Bronowski, PiotrX > > Subject: RE:

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-10-09 Thread Zhang, Roy Fan
Hi Akhil, > > rte_cryptodev_raw_configure_dp_context creates a shadow copy of the > queue > > pair data with in ctx, where rte_cryptodev_raw_attach_session sets the > function > > handler based on the session data. Using of the same PMD callback > function is > > to > > save one function pointer s

Re: [dpdk-dev] [dpdk-dev v10 2/4] cryptodev: add raw crypto data-path APIs

2020-09-25 Thread Dybkowski, AdamX
> -Original Message- > From: Zhang, Roy Fan > Sent: Thursday, 24 September, 2020 18:34 > To: dev@dpdk.org > Cc: akhil.go...@nxp.com; Trahe, Fiona ; Kusztal, > ArkadiuszX ; Dybkowski, AdamX > ; ano...@marvell.com; Ananyev, Konstantin > ; Zhang, Roy Fan > ; Bronowski, PiotrX > > Subject: [d