All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] doc: announce API changes in crypto library
@ 2017-05-04 15:37 Tomasz Kulasek
  2017-05-05 15:32 ` Declan Doherty
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tomasz Kulasek @ 2017-05-04 15:37 UTC (permalink / raw)
  To: dev; +Cc: declan.doherty

API changes are planned for 17.08 to made sessions agnostic to the
underlaying devices, removing coupling with crypto PMDs, so a single
session can be used on multiple devices.

It requires to change "struct rte_cryptodev_sym_session" to store more
than one private data for devices, as well as remove redundant dev_id
and dev_type.

Effected public functions:

 - rte_cryptodev_sym_session_pool_create
 - rte_cryptodev_sym_session_create
 - rte_cryptodev_sym_session_free

While session will not be directly associated with device, followed API
will be changed adding uint8_t dev_id to the argument list:

 - rte_cryptodev_queue_pair_attach_sym_session
 - rte_cryptodev_queue_pair_detach_sym_session

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
---

Detailed list of changes and scope of work is sent in the separate RFC:
http://dpdk.org/dev/patchwork/patch/24091/ ("[dpdk-dev,RFC] cryptodev:
make crypto session device independent")

 doc/guides/rel_notes/deprecation.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index a3e7c72..5527c20 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -81,3 +81,24 @@ Deprecation Notices
 
   - ``rte_crpytodev_scheduler_mode_get``, replaced by ``rte_cryptodev_scheduler_mode_get``
   - ``rte_crpytodev_scheduler_mode_set``, replaced by ``rte_cryptodev_scheduler_mode_set``
+
+* cryptodev: API changes are planned for 17.08 for the sessions management
+  to make it agnostic to the underlying devices, removing coupling with
+  crypto PMDs, so a single session can be used on multiple devices.
+
+  - ``struct rte_cryptodev_sym_session``, dev_id, dev_type will be removed,
+    _private field changed to the indirect array of private data pointers of
+    all supported devices
+
+  An API of followed functions will be changed to allow operate on multiple
+  devices with one session:
+
+  - ``rte_cryptodev_sym_session_create``
+  - ``rte_cryptodev_sym_session_free``
+  - ``rte_cryptodev_sym_session_pool_create``
+
+  While dev_id will not be stored in the ``struct rte_cryptodev_sym_session``,
+  directly, the change of followed API is required:
+
+  - ``rte_cryptodev_queue_pair_attach_sym_session``
+  - ``rte_cryptodev_queue_pair_detach_sym_session``
\ No newline at end of file
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] doc: announce API changes in crypto library
  2017-05-04 15:37 [PATCH] doc: announce API changes in crypto library Tomasz Kulasek
@ 2017-05-05 15:32 ` Declan Doherty
  2017-05-11  0:51   ` Thomas Monjalon
  2017-05-08  9:49 ` De Lara Guarch, Pablo
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Declan Doherty @ 2017-05-05 15:32 UTC (permalink / raw)
  To: Tomasz Kulasek, dev

On 04/05/2017 4:37 PM, Tomasz Kulasek wrote:
> API changes are planned for 17.08 to made sessions agnostic to the
> underlaying devices, removing coupling with crypto PMDs, so a single
> session can be used on multiple devices.
>
> It requires to change "struct rte_cryptodev_sym_session" to store more
> than one private data for devices, as well as remove redundant dev_id
> and dev_type.
>
> Effected public functions:
>
>  - rte_cryptodev_sym_session_pool_create
>  - rte_cryptodev_sym_session_create
>  - rte_cryptodev_sym_session_free
>
> While session will not be directly associated with device, followed API
> will be changed adding uint8_t dev_id to the argument list:
>
>  - rte_cryptodev_queue_pair_attach_sym_session
>  - rte_cryptodev_queue_pair_detach_sym_session
>
> Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
> ---
...
>

Acked-by: Declan Doherty <declan.doherty@intel.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] doc: announce API changes in crypto library
  2017-05-04 15:37 [PATCH] doc: announce API changes in crypto library Tomasz Kulasek
  2017-05-05 15:32 ` Declan Doherty
@ 2017-05-08  9:49 ` De Lara Guarch, Pablo
  2017-05-08 13:54 ` Trahe, Fiona
  2017-05-09  8:57 ` Akhil Goyal
  3 siblings, 0 replies; 6+ messages in thread
From: De Lara Guarch, Pablo @ 2017-05-08  9:49 UTC (permalink / raw)
  To: Kulasek, TomaszX, dev; +Cc: Doherty, Declan



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tomasz Kulasek
> Sent: Thursday, May 04, 2017 4:37 PM
> To: dev@dpdk.org
> Cc: Doherty, Declan
> Subject: [dpdk-dev] [PATCH] doc: announce API changes in crypto library
> 
> API changes are planned for 17.08 to made sessions agnostic to the
> underlaying devices, removing coupling with crypto PMDs, so a single
> session can be used on multiple devices.
> 
> It requires to change "struct rte_cryptodev_sym_session" to store more
> than one private data for devices, as well as remove redundant dev_id
> and dev_type.
> 
> Effected public functions:
> 
>  - rte_cryptodev_sym_session_pool_create
>  - rte_cryptodev_sym_session_create
>  - rte_cryptodev_sym_session_free
> 
> While session will not be directly associated with device, followed API
> will be changed adding uint8_t dev_id to the argument list:
> 
>  - rte_cryptodev_queue_pair_attach_sym_session
>  - rte_cryptodev_queue_pair_detach_sym_session
> 
> Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>

Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] doc: announce API changes in crypto library
  2017-05-04 15:37 [PATCH] doc: announce API changes in crypto library Tomasz Kulasek
  2017-05-05 15:32 ` Declan Doherty
  2017-05-08  9:49 ` De Lara Guarch, Pablo
@ 2017-05-08 13:54 ` Trahe, Fiona
  2017-05-09  8:57 ` Akhil Goyal
  3 siblings, 0 replies; 6+ messages in thread
From: Trahe, Fiona @ 2017-05-08 13:54 UTC (permalink / raw)
  To: Kulasek, TomaszX, dev; +Cc: Doherty, Declan



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tomasz Kulasek
> Sent: Thursday, May 4, 2017 4:37 PM
> To: dev@dpdk.org
> Cc: Doherty, Declan <declan.doherty@intel.com>
> Subject: [dpdk-dev] [PATCH] doc: announce API changes in crypto library
> 
> API changes are planned for 17.08 to made sessions agnostic to the
> underlaying devices, removing coupling with crypto PMDs, so a single
> session can be used on multiple devices.
> 
> It requires to change "struct rte_cryptodev_sym_session" to store more
> than one private data for devices, as well as remove redundant dev_id
> and dev_type.
> 
> Effected public functions:
> 
>  - rte_cryptodev_sym_session_pool_create
>  - rte_cryptodev_sym_session_create
>  - rte_cryptodev_sym_session_free
> 
> While session will not be directly associated with device, followed API
> will be changed adding uint8_t dev_id to the argument list:
> 
>  - rte_cryptodev_queue_pair_attach_sym_session
>  - rte_cryptodev_queue_pair_detach_sym_session
> 
> Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] doc: announce API changes in crypto library
  2017-05-04 15:37 [PATCH] doc: announce API changes in crypto library Tomasz Kulasek
                   ` (2 preceding siblings ...)
  2017-05-08 13:54 ` Trahe, Fiona
@ 2017-05-09  8:57 ` Akhil Goyal
  3 siblings, 0 replies; 6+ messages in thread
From: Akhil Goyal @ 2017-05-09  8:57 UTC (permalink / raw)
  To: Tomasz Kulasek, dev; +Cc: declan.doherty

On 5/4/2017 9:07 PM, Tomasz Kulasek wrote:
> API changes are planned for 17.08 to made sessions agnostic to the
> underlaying devices, removing coupling with crypto PMDs, so a single
> session can be used on multiple devices.
>
> It requires to change "struct rte_cryptodev_sym_session" to store more
> than one private data for devices, as well as remove redundant dev_id
> and dev_type.
>
> Effected public functions:
>
>  - rte_cryptodev_sym_session_pool_create
>  - rte_cryptodev_sym_session_create
>  - rte_cryptodev_sym_session_free
>
> While session will not be directly associated with device, followed API
> will be changed adding uint8_t dev_id to the argument list:
>
>  - rte_cryptodev_queue_pair_attach_sym_session
>  - rte_cryptodev_queue_pair_detach_sym_session
>
> Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
> ---
>
> Detailed list of changes and scope of work is sent in the separate RFC:
> http://dpdk.org/dev/patchwork/patch/24091/ ("[dpdk-dev,RFC] cryptodev:
> make crypto session device independent")
>
>  doc/guides/rel_notes/deprecation.rst | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index a3e7c72..5527c20 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -81,3 +81,24 @@ Deprecation Notices
>
>    - ``rte_crpytodev_scheduler_mode_get``, replaced by ``rte_cryptodev_scheduler_mode_get``
>    - ``rte_crpytodev_scheduler_mode_set``, replaced by ``rte_cryptodev_scheduler_mode_set``
> +
> +* cryptodev: API changes are planned for 17.08 for the sessions management
> +  to make it agnostic to the underlying devices, removing coupling with
> +  crypto PMDs, so a single session can be used on multiple devices.
> +
> +  - ``struct rte_cryptodev_sym_session``, dev_id, dev_type will be removed,
> +    _private field changed to the indirect array of private data pointers of
> +    all supported devices
> +
> +  An API of followed functions will be changed to allow operate on multiple
> +  devices with one session:
> +
> +  - ``rte_cryptodev_sym_session_create``
> +  - ``rte_cryptodev_sym_session_free``
> +  - ``rte_cryptodev_sym_session_pool_create``
> +
> +  While dev_id will not be stored in the ``struct rte_cryptodev_sym_session``,
> +  directly, the change of followed API is required:
> +
> +  - ``rte_cryptodev_queue_pair_attach_sym_session``
> +  - ``rte_cryptodev_queue_pair_detach_sym_session``
> \ No newline at end of file
>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] doc: announce API changes in crypto library
  2017-05-05 15:32 ` Declan Doherty
@ 2017-05-11  0:51   ` Thomas Monjalon
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2017-05-11  0:51 UTC (permalink / raw)
  To: Tomasz Kulasek; +Cc: dev, Declan Doherty

05/05/2017 17:32, Declan Doherty:
> On 04/05/2017 4:37 PM, Tomasz Kulasek wrote:
> > API changes are planned for 17.08 to made sessions agnostic to the
> > underlaying devices, removing coupling with crypto PMDs, so a single
> > session can be used on multiple devices.
> >
> > It requires to change "struct rte_cryptodev_sym_session" to store more
> > than one private data for devices, as well as remove redundant dev_id
> > and dev_type.
> >
> > Effected public functions:
> >
> >  - rte_cryptodev_sym_session_pool_create
> >  - rte_cryptodev_sym_session_create
> >  - rte_cryptodev_sym_session_free
> >
> > While session will not be directly associated with device, followed API
> > will be changed adding uint8_t dev_id to the argument list:
> >
> >  - rte_cryptodev_queue_pair_attach_sym_session
> >  - rte_cryptodev_queue_pair_detach_sym_session
> >
> > Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
> 
> Acked-by: Declan Doherty <declan.doherty@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-11  0:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-04 15:37 [PATCH] doc: announce API changes in crypto library Tomasz Kulasek
2017-05-05 15:32 ` Declan Doherty
2017-05-11  0:51   ` Thomas Monjalon
2017-05-08  9:49 ` De Lara Guarch, Pablo
2017-05-08 13:54 ` Trahe, Fiona
2017-05-09  8:57 ` Akhil Goyal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.