[dpdk-dev] doc: announce ABI change for crypto info struct

Message ID 20180126090355.25903-1-pablo.de.lara.guarch@intel.com (mailing list archive)
State Superseded, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

De Lara Guarch, Pablo Jan. 26, 2018, 9:03 a.m. UTC
  Since the API changes made in 17.08, the session mempool
is not created anymore in each crypto device.
Therefore, there is no need to have, in the cryptodev info
structure, the maximum number of sessions supported per device
and per queue pair.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Fiona Trahe Jan. 26, 2018, 10:44 a.m. UTC | #1
Hi Pablo,

> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Friday, January 26, 2018 9:04 AM
> To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;
> jerin.jacob@intel.com; Trahe, Fiona <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>; Jain,
> Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com; dima@marvell.com;
> nsamsono@marvell.com; jianbo.liu@arm.com
> Cc: dev@dpdk.org; De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Subject: [PATCH] doc: announce ABI change for crypto info struct
> 
> Since the API changes made in 17.08, the session mempool
> is not created anymore in each crypto device.
> Therefore, there is no need to have, in the cryptodev info
> structure, the maximum number of sessions supported per device
> and per queue pair.
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> ---
>  doc/guides/rel_notes/deprecation.rst | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index d59ad5988..5588ba7c1 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -59,3 +59,8 @@ Deprecation Notices
>    be added between the producer and consumer structures. The size of the
>    structure and the offset of the fields will remain the same on
>    platforms with 64B cache line, but will change on other platforms.
> +
> +* cryptodev: The structure ``sym``, including its fields ``max_nb_sessions``
> +  and ``max_nb_sessions_per_qp``, in structure ``rte_cryptodev_info``,
> +  will be removed in 18.05, as these fields are not relevant anymore
> +  since the session mempool is not internal in the crypto device anymore.
> --
[Fiona] max_nb_sessions must be also removed from 
struct rte_cryptodev_pmd_init_params
Regards deprecation of max_nb_sessions from both structs:
Acked-by: Fiona Trahe <fiona.trahe@intel.com>

If removing the max_nb_sessions_per_qp, then the following functions should also be deprecated. 
rte_cryptodev_queue_pair_attach_sym_session
rte_cryptodev_queue_pair_detach_sym_session
These and the max_nb_session_per_qp were added here at request of NXP:
http://dpdk.org/ml/archives/dev/2017-March/060740.html
  
De Lara Guarch, Pablo Jan. 26, 2018, 11:08 a.m. UTC | #2
> -----Original Message-----
> From: Trahe, Fiona
> Sent: Friday, January 26, 2018 10:45 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>;
> akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan
> <declan.doherty@intel.com>; jerin.jacob@intel.com; Griffin, John
> <john.griffin@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;
> jck@semihalf.com; tdu@semihalf.com; dima@marvell.com;
> nsamsono@marvell.com; jianbo.liu@arm.com
> Cc: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>
> Subject: RE: [PATCH] doc: announce ABI change for crypto info struct
> 
> Hi Pablo,
> 
> > -----Original Message-----
> > From: De Lara Guarch, Pablo
> > Sent: Friday, January 26, 2018 9:04 AM
> > To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan
> > <declan.doherty@intel.com>; jerin.jacob@intel.com; Trahe, Fiona
> > <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>; Jain,
> > Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;
> > tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;
> > jianbo.liu@arm.com
> > Cc: dev@dpdk.org; De Lara Guarch, Pablo
> > <pablo.de.lara.guarch@intel.com>
> > Subject: [PATCH] doc: announce ABI change for crypto info struct
> >
> > Since the API changes made in 17.08, the session mempool is not
> > created anymore in each crypto device.
> > Therefore, there is no need to have, in the cryptodev info structure,
> > the maximum number of sessions supported per device and per queue
> > pair.
> >
> > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> > ---
> >  doc/guides/rel_notes/deprecation.rst | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/doc/guides/rel_notes/deprecation.rst
> > b/doc/guides/rel_notes/deprecation.rst
> > index d59ad5988..5588ba7c1 100644
> > --- a/doc/guides/rel_notes/deprecation.rst
> > +++ b/doc/guides/rel_notes/deprecation.rst
> > @@ -59,3 +59,8 @@ Deprecation Notices
> >    be added between the producer and consumer structures. The size of
> the
> >    structure and the offset of the fields will remain the same on
> >    platforms with 64B cache line, but will change on other platforms.
> > +
> > +* cryptodev: The structure ``sym``, including its fields
> > +``max_nb_sessions``
> > +  and ``max_nb_sessions_per_qp``, in structure
> > +``rte_cryptodev_info``,
> > +  will be removed in 18.05, as these fields are not relevant anymore
> > +  since the session mempool is not internal in the crypto device
> anymore.
> > --
> [Fiona] max_nb_sessions must be also removed from struct
> rte_cryptodev_pmd_init_params 

Good point. Since this structure is internal, I guess we don't need a deprecation notice for it, 
but I will remove it in the patch for 18.05.

> Regards deprecation of max_nb_sessions from both structs:
> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
> 
> If removing the max_nb_sessions_per_qp, then the following functions
> should also be deprecated.
> rte_cryptodev_queue_pair_attach_sym_session
> rte_cryptodev_queue_pair_detach_sym_session
> These and the max_nb_session_per_qp were added here at request of NXP:
> http://dpdk.org/ml/archives/dev/2017-March/060740.html

Akhil, do you agree on this change?

Thanks,
Pablo
  
Akhil Goyal Jan. 29, 2018, 9:26 a.m. UTC | #3
Hi Pablo/Fiona,

On 1/26/2018 4:38 PM, De Lara Guarch, Pablo wrote:
> 
> 
>> -----Original Message-----
>> From: Trahe, Fiona
>> Sent: Friday, January 26, 2018 10:45 AM
>> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>;
>> akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan
>> <declan.doherty@intel.com>; jerin.jacob@intel.com; Griffin, John
>> <john.griffin@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;
>> jck@semihalf.com; tdu@semihalf.com; dima@marvell.com;
>> nsamsono@marvell.com; jianbo.liu@arm.com
>> Cc: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>
>> Subject: RE: [PATCH] doc: announce ABI change for crypto info struct
>>
>> Hi Pablo,
>>
>>> -----Original Message-----
>>> From: De Lara Guarch, Pablo
>>> Sent: Friday, January 26, 2018 9:04 AM
>>> To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan
>>> <declan.doherty@intel.com>; jerin.jacob@intel.com; Trahe, Fiona
>>> <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>; Jain,
>>> Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;
>>> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;
>>> jianbo.liu@arm.com
>>> Cc: dev@dpdk.org; De Lara Guarch, Pablo
>>> <pablo.de.lara.guarch@intel.com>
>>> Subject: [PATCH] doc: announce ABI change for crypto info struct
>>>
>>> Since the API changes made in 17.08, the session mempool is not
>>> created anymore in each crypto device.
>>> Therefore, there is no need to have, in the cryptodev info structure,
>>> the maximum number of sessions supported per device and per queue
>>> pair.
>>>
>>> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
>>> ---
>>>   doc/guides/rel_notes/deprecation.rst | 5 +++++
>>>   1 file changed, 5 insertions(+)
>>>
>>> diff --git a/doc/guides/rel_notes/deprecation.rst
>>> b/doc/guides/rel_notes/deprecation.rst
>>> index d59ad5988..5588ba7c1 100644
>>> --- a/doc/guides/rel_notes/deprecation.rst
>>> +++ b/doc/guides/rel_notes/deprecation.rst
>>> @@ -59,3 +59,8 @@ Deprecation Notices
>>>     be added between the producer and consumer structures. The size of
>> the
>>>     structure and the offset of the fields will remain the same on
>>>     platforms with 64B cache line, but will change on other platforms.
>>> +
>>> +* cryptodev: The structure ``sym``, including its fields
>>> +``max_nb_sessions``
>>> +  and ``max_nb_sessions_per_qp``, in structure
>>> +``rte_cryptodev_info``,
>>> +  will be removed in 18.05, as these fields are not relevant anymore
>>> +  since the session mempool is not internal in the crypto device
>> anymore.
>>> --
>> [Fiona] max_nb_sessions must be also removed from struct
>> rte_cryptodev_pmd_init_params
> 
> Good point. Since this structure is internal, I guess we don't need a deprecation notice for it,
> but I will remove it in the patch for 18.05.
> 
>> Regards deprecation of max_nb_sessions from both structs:
>> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
>>
>> If removing the max_nb_sessions_per_qp, then the following functions
>> should also be deprecated.
>> rte_cryptodev_queue_pair_attach_sym_session
>> rte_cryptodev_queue_pair_detach_sym_session
>> These and the max_nb_session_per_qp were added here at request of NXP:
>> http://dpdk.org/ml/archives/dev/2017-March/060740.html
> 
> Akhil, do you agree on this change?
> 

We recently did some changes in the driver to take care of the 
dependency for limit on max_nb_sessions_per_qp, but it is not removed 
completely. We will need to look into this. But sending the deprecation 
notice at this moment is fine. If something comes up, will let you know 
later.

-Akhil
  
Verma, Shally Jan. 30, 2018, 7:55 a.m. UTC | #4
I do see current cryptodev unit testcase (inside \test dir) uses info.sym.max_nb_sessions param for session mempool_create. So, such testcases change are also in proposal?

Another point, we recently submitted an RFC patch on lib/cryptodev with asymmetric crypto support (https://dpdk.org/dev/patchwork/patch/34308/) which is awaiting review and these fields have role to play there. 
So, could this change be please viewed in conjunction with asym RFC?

Thanks
Shally

> -----Original Message-----

> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Akhil Goyal

> Sent: 29 January 2018 14:57

> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Trahe, Fiona

> <fiona.trahe@intel.com>; hemant.agrawal@nxp.com; Doherty, Declan

> <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>; Jain,

> Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

> jianbo.liu@arm.com; Jacob, Jerin <Jerin.JacobKollanukkaran@cavium.com>

> Cc: dev@dpdk.org

> Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info

> struct

> 

> Hi Pablo/Fiona,

> 

> On 1/26/2018 4:38 PM, De Lara Guarch, Pablo wrote:

> >

> >

> >> -----Original Message-----

> >> From: Trahe, Fiona

> >> Sent: Friday, January 26, 2018 10:45 AM

> >> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>;

> >> akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan

> >> <declan.doherty@intel.com>; jerin.jacob@intel.com; Griffin, John

> >> <john.griffin@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;

> >> jck@semihalf.com; tdu@semihalf.com; dima@marvell.com;

> >> nsamsono@marvell.com; jianbo.liu@arm.com

> >> Cc: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>

> >> Subject: RE: [PATCH] doc: announce ABI change for crypto info struct

> >>

> >> Hi Pablo,

> >>

> >>> -----Original Message-----

> >>> From: De Lara Guarch, Pablo

> >>> Sent: Friday, January 26, 2018 9:04 AM

> >>> To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan

> >>> <declan.doherty@intel.com>; jerin.jacob@intel.com; Trahe, Fiona

> >>> <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>; Jain,

> >>> Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

> >>> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

> >>> jianbo.liu@arm.com

> >>> Cc: dev@dpdk.org; De Lara Guarch, Pablo

> >>> <pablo.de.lara.guarch@intel.com>

> >>> Subject: [PATCH] doc: announce ABI change for crypto info struct

> >>>

> >>> Since the API changes made in 17.08, the session mempool is not

> >>> created anymore in each crypto device.

> >>> Therefore, there is no need to have, in the cryptodev info structure,

> >>> the maximum number of sessions supported per device and per queue

> >>> pair.

> >>>

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

> >>> ---

> >>>   doc/guides/rel_notes/deprecation.rst | 5 +++++

> >>>   1 file changed, 5 insertions(+)

> >>>

> >>> diff --git a/doc/guides/rel_notes/deprecation.rst

> >>> b/doc/guides/rel_notes/deprecation.rst

> >>> index d59ad5988..5588ba7c1 100644

> >>> --- a/doc/guides/rel_notes/deprecation.rst

> >>> +++ b/doc/guides/rel_notes/deprecation.rst

> >>> @@ -59,3 +59,8 @@ Deprecation Notices

> >>>     be added between the producer and consumer structures. The size of

> >> the

> >>>     structure and the offset of the fields will remain the same on

> >>>     platforms with 64B cache line, but will change on other platforms.

> >>> +

> >>> +* cryptodev: The structure ``sym``, including its fields

> >>> +``max_nb_sessions``

> >>> +  and ``max_nb_sessions_per_qp``, in structure

> >>> +``rte_cryptodev_info``,

> >>> +  will be removed in 18.05, as these fields are not relevant anymore

> >>> +  since the session mempool is not internal in the crypto device

> >> anymore.

> >>> --

> >> [Fiona] max_nb_sessions must be also removed from struct

> >> rte_cryptodev_pmd_init_params

> >

> > Good point. Since this structure is internal, I guess we don't need a

> deprecation notice for it,

> > but I will remove it in the patch for 18.05.

> >

> >> Regards deprecation of max_nb_sessions from both structs:

> >> Acked-by: Fiona Trahe <fiona.trahe@intel.com>

> >>

> >> If removing the max_nb_sessions_per_qp, then the following functions

> >> should also be deprecated.

> >> rte_cryptodev_queue_pair_attach_sym_session

> >> rte_cryptodev_queue_pair_detach_sym_session

> >> These and the max_nb_session_per_qp were added here at request of

> NXP:

> >> http://dpdk.org/ml/archives/dev/2017-March/060740.html

> >

> > Akhil, do you agree on this change?

> >

> 

> We recently did some changes in the driver to take care of the

> dependency for limit on max_nb_sessions_per_qp, but it is not removed

> completely. We will need to look into this. But sending the deprecation

> notice at this moment is fine. If something comes up, will let you know

> later.

> 

> -Akhil
  
De Lara Guarch, Pablo Jan. 30, 2018, 11:21 a.m. UTC | #5
Hi Shally/Ahkil,

> -----Original Message-----

> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Verma, Shally

> Sent: Tuesday, January 30, 2018 7:56 AM

> To: Akhil Goyal <akhil.goyal@nxp.com>; De Lara Guarch, Pablo

> <pablo.de.lara.guarch@intel.com>; Trahe, Fiona <fiona.trahe@intel.com>;

> hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;

> Griffin, John <john.griffin@intel.com>; Jain, Deepak K

> <deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com;

> dima@marvell.com; nsamsono@marvell.com; jianbo.liu@arm.com; Jacob,

> Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

> <NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

> <Nidadavolu.Murthy@cavium.com>

> Cc: dev@dpdk.org

> Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info

> struct

> 

> I do see current cryptodev unit testcase (inside \test dir) uses

> info.sym.max_nb_sessions param for session mempool_create. So, such

> testcases change are also in proposal?


Yes, for these tests, we can just define a macro in the tests, instead of using the info structure.
> 

> Another point, we recently submitted an RFC patch on lib/cryptodev with

> asymmetric crypto support

> (https://dpdk.org/dev/patchwork/patch/34308/) which is awaiting review

> and these fields have role to play there.

> So, could this change be please viewed in conjunction with asym RFC?


Do you need it for asymmetric? Anyway, this would remove the symmetric function and structures, not applicable for you.
> 

> Thanks

> Shally

> 

> > -----Original Message-----

> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Akhil Goyal

> > Sent: 29 January 2018 14:57

> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Trahe,

> > Fiona <fiona.trahe@intel.com>; hemant.agrawal@nxp.com; Doherty,

> Declan

> > <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>;

> > Jain, Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

> > tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

> > jianbo.liu@arm.com; Jacob, Jerin

> <Jerin.JacobKollanukkaran@cavium.com>

> > Cc: dev@dpdk.org

> > Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto

> > info struct

> >

> > Hi Pablo/Fiona,

> >

> > On 1/26/2018 4:38 PM, De Lara Guarch, Pablo wrote:

> > >

> > >

> > >> -----Original Message-----

> > >> From: Trahe, Fiona

> > >> Sent: Friday, January 26, 2018 10:45 AM

> > >> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>;

> > >> akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan

> > >> <declan.doherty@intel.com>; jerin.jacob@intel.com; Griffin, John

> > >> <john.griffin@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;

> > >> jck@semihalf.com; tdu@semihalf.com; dima@marvell.com;

> > >> nsamsono@marvell.com; jianbo.liu@arm.com

> > >> Cc: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>

> > >> Subject: RE: [PATCH] doc: announce ABI change for crypto info

> > >> struct

> > >>

> > >> Hi Pablo,

> > >>

> > >>> -----Original Message-----

> > >>> From: De Lara Guarch, Pablo

> > >>> Sent: Friday, January 26, 2018 9:04 AM

> > >>> To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty,

> Declan

> > >>> <declan.doherty@intel.com>; jerin.jacob@intel.com; Trahe, Fiona

> > >>> <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>;

> > >>> Jain, Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

> > >>> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

> > >>> jianbo.liu@arm.com

> > >>> Cc: dev@dpdk.org; De Lara Guarch, Pablo

> > >>> <pablo.de.lara.guarch@intel.com>

> > >>> Subject: [PATCH] doc: announce ABI change for crypto info struct

> > >>>

> > >>> Since the API changes made in 17.08, the session mempool is not

> > >>> created anymore in each crypto device.

> > >>> Therefore, there is no need to have, in the cryptodev info

> > >>> structure, the maximum number of sessions supported per device

> and

> > >>> per queue pair.

> > >>>

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

> > >>> ---

> > >>>   doc/guides/rel_notes/deprecation.rst | 5 +++++

> > >>>   1 file changed, 5 insertions(+)

> > >>>

> > >>> diff --git a/doc/guides/rel_notes/deprecation.rst

> > >>> b/doc/guides/rel_notes/deprecation.rst

> > >>> index d59ad5988..5588ba7c1 100644

> > >>> --- a/doc/guides/rel_notes/deprecation.rst

> > >>> +++ b/doc/guides/rel_notes/deprecation.rst

> > >>> @@ -59,3 +59,8 @@ Deprecation Notices

> > >>>     be added between the producer and consumer structures. The

> > >>> size of

> > >> the

> > >>>     structure and the offset of the fields will remain the same on

> > >>>     platforms with 64B cache line, but will change on other platforms.

> > >>> +

> > >>> +* cryptodev: The structure ``sym``, including its fields

> > >>> +``max_nb_sessions``

> > >>> +  and ``max_nb_sessions_per_qp``, in structure

> > >>> +``rte_cryptodev_info``,

> > >>> +  will be removed in 18.05, as these fields are not relevant

> > >>> +anymore

> > >>> +  since the session mempool is not internal in the crypto device

> > >> anymore.

> > >>> --

> > >> [Fiona] max_nb_sessions must be also removed from struct

> > >> rte_cryptodev_pmd_init_params

> > >

> > > Good point. Since this structure is internal, I guess we don't need

> > > a

> > deprecation notice for it,

> > > but I will remove it in the patch for 18.05.

> > >

> > >> Regards deprecation of max_nb_sessions from both structs:

> > >> Acked-by: Fiona Trahe <fiona.trahe@intel.com>

> > >>

> > >> If removing the max_nb_sessions_per_qp, then the following

> > >> functions should also be deprecated.

> > >> rte_cryptodev_queue_pair_attach_sym_session

> > >> rte_cryptodev_queue_pair_detach_sym_session

> > >> These and the max_nb_session_per_qp were added here at request of

> > NXP:

> > >> http://dpdk.org/ml/archives/dev/2017-March/060740.html

> > >

> > > Akhil, do you agree on this change?

> > >

> >

> > We recently did some changes in the driver to take care of the

> > dependency for limit on max_nb_sessions_per_qp, but it is not removed

> > completely. We will need to look into this. But sending the

> > deprecation notice at this moment is fine. If something comes up, will

> > let you know later.


Looks good to me. Could you ack this if you agree with it?

Thanks,
Pablo

> >

> > -Akhil
  
Akhil Goyal Jan. 30, 2018, 11:37 a.m. UTC | #6
On 1/26/2018 2:33 PM, Pablo de Lara wrote:
> Since the API changes made in 17.08, the session mempool
> is not created anymore in each crypto device.
> Therefore, there is no need to have, in the cryptodev info
> structure, the maximum number of sessions supported per device
> and per queue pair.
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> ---
>   doc/guides/rel_notes/deprecation.rst | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index d59ad5988..5588ba7c1 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -59,3 +59,8 @@ Deprecation Notices
>     be added between the producer and consumer structures. The size of the
>     structure and the offset of the fields will remain the same on
>     platforms with 64B cache line, but will change on other platforms.
> +
> +* cryptodev: The structure ``sym``, including its fields ``max_nb_sessions``
> +  and ``max_nb_sessions_per_qp``, in structure ``rte_cryptodev_info``,
> +  will be removed in 18.05, as these fields are not relevant anymore
> +  since the session mempool is not internal in the crypto device anymore.
> 
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
  
Verma, Shally Jan. 30, 2018, 11:53 a.m. UTC | #7
>-----Original Message-----

>From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]

>Sent: 30 January 2018 16:51

>To: Verma, Shally <Shally.Verma@cavium.com>; Akhil Goyal <akhil.goyal@nxp.com>; Trahe, Fiona <fiona.trahe@intel.com>;

>hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>; Jain, Deepak K

><deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

>jianbo.liu@arm.com; Jacob, Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

><NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu <Nidadavolu.Murthy@cavium.com>

>Cc: dev@dpdk.org

>Subject: RE: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info struct

>

>Hi Shally/Ahkil,

>

>> -----Original Message-----

>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Verma, Shally

>> Sent: Tuesday, January 30, 2018 7:56 AM

>> To: Akhil Goyal <akhil.goyal@nxp.com>; De Lara Guarch, Pablo

>> <pablo.de.lara.guarch@intel.com>; Trahe, Fiona <fiona.trahe@intel.com>;

>> hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;

>> Griffin, John <john.griffin@intel.com>; Jain, Deepak K

>> <deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com;

>> dima@marvell.com; nsamsono@marvell.com; jianbo.liu@arm.com; Jacob,

>> Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

>> <NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

>> <Nidadavolu.Murthy@cavium.com>

>> Cc: dev@dpdk.org

>> Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info

>> struct

>>

>> I do see current cryptodev unit testcase (inside \test dir) uses

>> info.sym.max_nb_sessions param for session mempool_create. So, such

>> testcases change are also in proposal?

>

>Yes, for these tests, we can just define a macro in the tests, instead of using the info structure.


[Shally] Ok, then you mean applications will choose any random number during mempool_create and not dependent on device max_nb_sessions?

>>

>> Another point, we recently submitted an RFC patch on lib/cryptodev with

>> asymmetric crypto support

>> (https://dpdk.org/dev/patchwork/patch/34308/) which is awaiting review

>> and these fields have role to play there.

>> So, could this change be please viewed in conjunction with asym RFC?

>

>Do you need it for asymmetric? Anyway, this would remove the symmetric function and structures, not applicable for you.


[Shally] I would say addition of asym in lib/cryptodev is not entirely standalone, specifically for PMDs that can support both. 
My key concern are max_nb_sessions_per_qp and related qp_attach_sym/asym APIs which enable management of queue distribution among sym and asym in current proposal, specifically, for PMDs that can support both but have dedicated qp for each. Right now proposal is open for feedback and would prefer to be covered before sym related changes could be applied.

>>

>> Thanks

>> Shally

>>

>> > -----Original Message-----

>> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Akhil Goyal

>> > Sent: 29 January 2018 14:57

>> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Trahe,

>> > Fiona <fiona.trahe@intel.com>; hemant.agrawal@nxp.com; Doherty,

>> Declan

>> > <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>;

>> > Jain, Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

>> > tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

>> > jianbo.liu@arm.com; Jacob, Jerin

>> <Jerin.JacobKollanukkaran@cavium.com>

>> > Cc: dev@dpdk.org

>> > Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto

>> > info struct

>> >

>> > Hi Pablo/Fiona,

>> >

>> > On 1/26/2018 4:38 PM, De Lara Guarch, Pablo wrote:

>> > >

>> > >

>> > >> -----Original Message-----

>> > >> From: Trahe, Fiona

>> > >> Sent: Friday, January 26, 2018 10:45 AM

>> > >> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>;

>> > >> akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan

>> > >> <declan.doherty@intel.com>; jerin.jacob@intel.com; Griffin, John

>> > >> <john.griffin@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;

>> > >> jck@semihalf.com; tdu@semihalf.com; dima@marvell.com;

>> > >> nsamsono@marvell.com; jianbo.liu@arm.com

>> > >> Cc: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>

>> > >> Subject: RE: [PATCH] doc: announce ABI change for crypto info

>> > >> struct

>> > >>

>> > >> Hi Pablo,

>> > >>

>> > >>> -----Original Message-----

>> > >>> From: De Lara Guarch, Pablo

>> > >>> Sent: Friday, January 26, 2018 9:04 AM

>> > >>> To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty,

>> Declan

>> > >>> <declan.doherty@intel.com>; jerin.jacob@intel.com; Trahe, Fiona

>> > >>> <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>;

>> > >>> Jain, Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

>> > >>> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

>> > >>> jianbo.liu@arm.com

>> > >>> Cc: dev@dpdk.org; De Lara Guarch, Pablo

>> > >>> <pablo.de.lara.guarch@intel.com>

>> > >>> Subject: [PATCH] doc: announce ABI change for crypto info struct

>> > >>>

>> > >>> Since the API changes made in 17.08, the session mempool is not

>> > >>> created anymore in each crypto device.

>> > >>> Therefore, there is no need to have, in the cryptodev info

>> > >>> structure, the maximum number of sessions supported per device

>> and

>> > >>> per queue pair.

>> > >>>

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

>> > >>> ---

>> > >>>   doc/guides/rel_notes/deprecation.rst | 5 +++++

>> > >>>   1 file changed, 5 insertions(+)

>> > >>>

>> > >>> diff --git a/doc/guides/rel_notes/deprecation.rst

>> > >>> b/doc/guides/rel_notes/deprecation.rst

>> > >>> index d59ad5988..5588ba7c1 100644

>> > >>> --- a/doc/guides/rel_notes/deprecation.rst

>> > >>> +++ b/doc/guides/rel_notes/deprecation.rst

>> > >>> @@ -59,3 +59,8 @@ Deprecation Notices

>> > >>>     be added between the producer and consumer structures. The

>> > >>> size of

>> > >> the

>> > >>>     structure and the offset of the fields will remain the same on

>> > >>>     platforms with 64B cache line, but will change on other platforms.

>> > >>> +

>> > >>> +* cryptodev: The structure ``sym``, including its fields

>> > >>> +``max_nb_sessions``

>> > >>> +  and ``max_nb_sessions_per_qp``, in structure

>> > >>> +``rte_cryptodev_info``,

>> > >>> +  will be removed in 18.05, as these fields are not relevant

>> > >>> +anymore

>> > >>> +  since the session mempool is not internal in the crypto device

>> > >> anymore.

>> > >>> --

>> > >> [Fiona] max_nb_sessions must be also removed from struct

>> > >> rte_cryptodev_pmd_init_params

>> > >

>> > > Good point. Since this structure is internal, I guess we don't need

>> > > a

>> > deprecation notice for it,

>> > > but I will remove it in the patch for 18.05.

>> > >

>> > >> Regards deprecation of max_nb_sessions from both structs:

>> > >> Acked-by: Fiona Trahe <fiona.trahe@intel.com>

>> > >>

>> > >> If removing the max_nb_sessions_per_qp, then the following

>> > >> functions should also be deprecated.

>> > >> rte_cryptodev_queue_pair_attach_sym_session

>> > >> rte_cryptodev_queue_pair_detach_sym_session

>> > >> These and the max_nb_session_per_qp were added here at request of

>> > NXP:

>> > >> http://dpdk.org/ml/archives/dev/2017-March/060740.html

>> > >

>> > > Akhil, do you agree on this change?

>> > >

>> >

>> > We recently did some changes in the driver to take care of the

>> > dependency for limit on max_nb_sessions_per_qp, but it is not removed

>> > completely. We will need to look into this. But sending the

>> > deprecation notice at this moment is fine. If something comes up, will

>> > let you know later.

>

>Looks good to me. Could you ack this if you agree with it?

>

>Thanks,

>Pablo

>

>> >

>> > -Akhil
  
De Lara Guarch, Pablo Jan. 30, 2018, 12:14 p.m. UTC | #8
v2:
- Added an extra deprecation announcement
- Bonded the other two deprecation notices with the new one in a
  patchset

Pablo de Lara (3):
  doc: announce ABI change for crypto info struct
  doc: announce deprecation for attach/detach crypto session
  doc: announce deprecation in crypto queue pair start/stop

 doc/guides/rel_notes/deprecation.rst | 15 +++++++++++++++
 lib/librte_cryptodev/rte_cryptodev.h |  4 ++++
 2 files changed, 19 insertions(+)
  
De Lara Guarch, Pablo Feb. 2, 2018, 9:07 a.m. UTC | #9
Hi Shally,

> -----Original Message-----

> From: Verma, Shally [mailto:Shally.Verma@cavium.com]

> Sent: Tuesday, January 30, 2018 11:54 AM

> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Akhil Goyal

> <akhil.goyal@nxp.com>; Trahe, Fiona <fiona.trahe@intel.com>;

> hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;

> Griffin, John <john.griffin@intel.com>; Jain, Deepak K

> <deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com;

> dima@marvell.com; nsamsono@marvell.com; jianbo.liu@arm.com; Jacob,

> Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

> <NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

> <Nidadavolu.Murthy@cavium.com>

> Cc: dev@dpdk.org

> Subject: RE: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info

> struct

> 

> 

> 

> >-----Original Message-----

> >From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]

> >Sent: 30 January 2018 16:51

> >To: Verma, Shally <Shally.Verma@cavium.com>; Akhil Goyal

> ><akhil.goyal@nxp.com>; Trahe, Fiona <fiona.trahe@intel.com>;

> >hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;

> >Griffin, John <john.griffin@intel.com>; Jain, Deepak K

> ><deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com;

> >dima@marvell.com; nsamsono@marvell.com; jianbo.liu@arm.com; Jacob,

> >Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

> ><NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

> ><Nidadavolu.Murthy@cavium.com>

> >Cc: dev@dpdk.org

> >Subject: RE: [dpdk-dev] [PATCH] doc: announce ABI change for crypto

> >info struct

> >

> >Hi Shally/Ahkil,

> >

> >> -----Original Message-----

> >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Verma, Shally

> >> Sent: Tuesday, January 30, 2018 7:56 AM

> >> To: Akhil Goyal <akhil.goyal@nxp.com>; De Lara Guarch, Pablo

> >> <pablo.de.lara.guarch@intel.com>; Trahe, Fiona

> >> <fiona.trahe@intel.com>; hemant.agrawal@nxp.com; Doherty, Declan

> >> <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>;

> >> Jain, Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

> >> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

> >> jianbo.liu@arm.com; Jacob, Jerin

> >> <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

> >> <NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

> >> <Nidadavolu.Murthy@cavium.com>

> >> Cc: dev@dpdk.org

> >> Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto

> >> info struct

> >>

> >> I do see current cryptodev unit testcase (inside \test dir) uses

> >> info.sym.max_nb_sessions param for session mempool_create. So, such

> >> testcases change are also in proposal?

> >

> >Yes, for these tests, we can just define a macro in the tests, instead of

> using the info structure.

> 

> [Shally] Ok, then you mean applications will choose any random number

> during mempool_create and not dependent on device max_nb_sessions?


Yes, actually for the unit tests, even one session is enough.

> 

> >>

> >> Another point, we recently submitted an RFC patch on lib/cryptodev

> >> with asymmetric crypto support

> >> (https://dpdk.org/dev/patchwork/patch/34308/) which is awaiting

> >> review and these fields have role to play there.

> >> So, could this change be please viewed in conjunction with asym RFC?

> >

> >Do you need it for asymmetric? Anyway, this would remove the

> symmetric function and structures, not applicable for you.

> 

> [Shally] I would say addition of asym in lib/cryptodev is not entirely

> standalone, specifically for PMDs that can support both.

> My key concern are max_nb_sessions_per_qp and related

> qp_attach_sym/asym APIs which enable management of queue distribution

> among sym and asym in current proposal, specifically, for PMDs that can

> support both but have dedicated qp for each. Right now proposal is open

> for feedback and would prefer to be covered before sym related changes

> could be applied.


Actually, I have been thinking about this. Given the time we have until 18.02 is out,
and that this is not urgent to be applied (this is just code cleanup),
I am postponing this until next release. 

My other reason is that the info structure has a rte_pci_device pointer which should be removed.
However, I believe it is better to leave it for next release and discuss it with other libraries which has this, like ethdev.

Thanks,
Pablo
  
Verma, Shally Feb. 2, 2018, 10:52 a.m. UTC | #10
>-----Original Message-----

>From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]

>Sent: 02 February 2018 14:38

>To: Verma, Shally <Shally.Verma@cavium.com>; Akhil Goyal <akhil.goyal@nxp.com>; Trahe, Fiona <fiona.trahe@intel.com>;

>hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>; Jain, Deepak K

><deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

>jianbo.liu@arm.com; Jacob, Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

><NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu <Nidadavolu.Murthy@cavium.com>

>Cc: dev@dpdk.org

>Subject: RE: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info struct

>

>Hi Shally,

>

>> -----Original Message-----

>> From: Verma, Shally [mailto:Shally.Verma@cavium.com]

>> Sent: Tuesday, January 30, 2018 11:54 AM

>> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Akhil Goyal

>> <akhil.goyal@nxp.com>; Trahe, Fiona <fiona.trahe@intel.com>;

>> hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;

>> Griffin, John <john.griffin@intel.com>; Jain, Deepak K

>> <deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com;

>> dima@marvell.com; nsamsono@marvell.com; jianbo.liu@arm.com; Jacob,

>> Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

>> <NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

>> <Nidadavolu.Murthy@cavium.com>

>> Cc: dev@dpdk.org

>> Subject: RE: [dpdk-dev] [PATCH] doc: announce ABI change for crypto info

>> struct

>>

>>

>>

>> >-----Original Message-----

>> >From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]

>> >Sent: 30 January 2018 16:51

>> >To: Verma, Shally <Shally.Verma@cavium.com>; Akhil Goyal

>> ><akhil.goyal@nxp.com>; Trahe, Fiona <fiona.trahe@intel.com>;

>> >hemant.agrawal@nxp.com; Doherty, Declan <declan.doherty@intel.com>;

>> >Griffin, John <john.griffin@intel.com>; Jain, Deepak K

>> ><deepak.k.jain@intel.com>; jck@semihalf.com; tdu@semihalf.com;

>> >dima@marvell.com; nsamsono@marvell.com; jianbo.liu@arm.com; Jacob,

>> >Jerin <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

>> ><NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

>> ><Nidadavolu.Murthy@cavium.com>

>> >Cc: dev@dpdk.org

>> >Subject: RE: [dpdk-dev] [PATCH] doc: announce ABI change for crypto

>> >info struct

>> >

>> >Hi Shally/Ahkil,

>> >

>> >> -----Original Message-----

>> >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Verma, Shally

>> >> Sent: Tuesday, January 30, 2018 7:56 AM

>> >> To: Akhil Goyal <akhil.goyal@nxp.com>; De Lara Guarch, Pablo

>> >> <pablo.de.lara.guarch@intel.com>; Trahe, Fiona

>> >> <fiona.trahe@intel.com>; hemant.agrawal@nxp.com; Doherty, Declan

>> >> <declan.doherty@intel.com>; Griffin, John <john.griffin@intel.com>;

>> >> Jain, Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;

>> >> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;

>> >> jianbo.liu@arm.com; Jacob, Jerin

>> >> <Jerin.JacobKollanukkaran@cavium.com>; Athreya, Narayana Prasad

>> >> <NarayanaPrasad.Athreya@cavium.com>; Murthy, Nidadavolu

>> >> <Nidadavolu.Murthy@cavium.com>

>> >> Cc: dev@dpdk.org

>> >> Subject: Re: [dpdk-dev] [PATCH] doc: announce ABI change for crypto

>> >> info struct

>> >>

>> >> I do see current cryptodev unit testcase (inside \test dir) uses

>> >> info.sym.max_nb_sessions param for session mempool_create. So, such

>> >> testcases change are also in proposal?

>> >

>> >Yes, for these tests, we can just define a macro in the tests, instead of

>> using the info structure.

>>

>> [Shally] Ok, then you mean applications will choose any random number

>> during mempool_create and not dependent on device max_nb_sessions?

>

>Yes, actually for the unit tests, even one session is enough.

>

>>

>> >>

>> >> Another point, we recently submitted an RFC patch on lib/cryptodev

>> >> with asymmetric crypto support

>> >> (https://dpdk.org/dev/patchwork/patch/34308/) which is awaiting

>> >> review and these fields have role to play there.

>> >> So, could this change be please viewed in conjunction with asym RFC?

>> >

>> >Do you need it for asymmetric? Anyway, this would remove the

>> symmetric function and structures, not applicable for you.

>>

>> [Shally] I would say addition of asym in lib/cryptodev is not entirely

>> standalone, specifically for PMDs that can support both.

>> My key concern are max_nb_sessions_per_qp and related

>> qp_attach_sym/asym APIs which enable management of queue distribution

>> among sym and asym in current proposal, specifically, for PMDs that can

>> support both but have dedicated qp for each. Right now proposal is open

>> for feedback and would prefer to be covered before sym related changes

>> could be applied.

>

>Actually, I have been thinking about this. Given the time we have until 18.02 is out,

>and that this is not urgent to be applied (this is just code cleanup),

>I am postponing this until next release.

>

[Shally] Ok. Thanks for acknowledging this.

>My other reason is that the info structure has a rte_pci_device pointer which should be removed.

>However, I believe it is better to leave it for next release and discuss it with other libraries which has this, like ethdev.

>

>Thanks,

>Pablo
  
De Lara Guarch, Pablo Feb. 13, 2018, 11:45 a.m. UTC | #11
> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Tuesday, January 30, 2018 12:14 PM
> To: akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Doherty, Declan
> <declan.doherty@intel.com>; jerin.jacob@caviumnetworks.com; Trahe,
> Fiona <fiona.trahe@intel.com>; Griffin, John <john.griffin@intel.com>; Jain,
> Deepak K <deepak.k.jain@intel.com>; jck@semihalf.com;
> tdu@semihalf.com; dima@marvell.com; nsamsono@marvell.com;
> jianbo.liu@arm.com
> Cc: dev@dpdk.org; De Lara Guarch, Pablo
> <pablo.de.lara.guarch@intel.com>
> Subject: [PATCH v2 0/3] Cryptodev API/ABI deprecation notices
> 
> v2:
> - Added an extra deprecation announcement
> - Bonded the other two deprecation notices with the new one in a
>   patchset
> 
> Pablo de Lara (3):
>   doc: announce ABI change for crypto info struct
>   doc: announce deprecation for attach/detach crypto session
>   doc: announce deprecation in crypto queue pair start/stop
> 
>  doc/guides/rel_notes/deprecation.rst | 15 +++++++++++++++
> lib/librte_cryptodev/rte_cryptodev.h |  4 ++++
>  2 files changed, 19 insertions(+)
> 
> --
> 2.14.3

Deferring this to 18.05, so we could discuss a replacement for pci_dev structure
in the cryptodev info structure, also needed for ethdev.

Pablo
  
De Lara Guarch, Pablo May 17, 2018, 9 a.m. UTC | #12
v3:
- Added an extra deprecation announcement (replacing rte_pci_device
  with rte_device)
- Rebased against latest DPDK code

v2:
- Added an extra deprecation announcement
- Bonded the other two deprecation notices with the new one in a
  patchset

Pablo de Lara (4):
  doc: announce ABI change for crypto sym info struct
  doc: announce ABI change for crypto info struct
  doc: announce deprecation for attach/detach crypto session
  doc: announce deprecation in crypto queue pair start/stop

 doc/guides/rel_notes/deprecation.rst | 17 +++++++++++++++++
 lib/librte_cryptodev/rte_cryptodev.h |  4 ++++
 2 files changed, 21 insertions(+)
  
De Lara Guarch, Pablo May 21, 2018, 11:06 a.m. UTC | #13
v4:
- Fixed DPDK versions called out to deprecate/remove API.
- Removed rte_cryptodev_queue_pair_attach_sym_session call
  from the IPSec gw app, since the function is deprecated now.
- Added patch announcing a replacement of some of the crypto
  feature flags
- Added patch renaming two symmetric specific functions
  from *_session_* to *_sym_session_*.

v3:
- Added an extra deprecation announcement (replacing rte_pci_device
  with rte_device)
- Rebased against latest DPDK code

v2:
- Added an extra deprecation announcement
- Bonded the other two deprecation notices with the new one in a
  patchset


Pablo de Lara (6):
  doc: announce ABI change for crypto sym info struct
  doc: announce ABI change for crypto info struct
  doc: announce deprecation for attach/detach crypto session
  doc: announce deprecation in crypto queue pair start/stop
  doc: announce deprecation in crypto feature flags
  cryptodev: rename get session size API

 app/test-crypto-perf/main.c                   |  2 +-
 doc/guides/prog_guide/cryptodev_lib.rst       |  6 ++--
 doc/guides/rel_notes/deprecation.rst          | 25 +++++++++++++
 drivers/crypto/aesni_gcm/aesni_gcm_pmd.c      |  2 +-
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c    |  2 +-
 drivers/crypto/armv8/rte_armv8_pmd.c          |  2 +-
 drivers/crypto/kasumi/rte_kasumi_pmd.c        |  2 +-
 drivers/crypto/openssl/rte_openssl_pmd.c      |  2 +-
 drivers/crypto/snow3g/rte_snow3g_pmd.c        |  2 +-
 drivers/crypto/zuc/rte_zuc_pmd.c              |  2 +-
 examples/ipsec-secgw/ipsec-secgw.c            |  2 +-
 examples/ipsec-secgw/ipsec.c                  | 12 -------
 examples/l2fwd-crypto/main.c                  |  2 +-
 examples/vhost_crypto/main.c                  |  2 +-
 lib/librte_cryptodev/rte_cryptodev.c          | 12 +++++++
 lib/librte_cryptodev/rte_cryptodev.h          | 35 +++++++++++++++++++
 .../rte_cryptodev_version.map                 |  8 +++++
 test/test/test_cryptodev.c                    |  6 ++--
 test/test/test_event_crypto_adapter.c         |  2 +-
 19 files changed, 99 insertions(+), 29 deletions(-)
  
De Lara Guarch, Pablo May 21, 2018, 1:08 p.m. UTC | #14
v5:
- Renamed rte_cryptodev_get_header_session_size with
  rte_cryptodev_sym_get_header_session_size, and
  rte_cryptodev_get_private_session_size with
  rte_cryptodev_sym_get_private_session_size.

v4:
- Fixed DPDK versions called out to deprecate/remove API.
- Removed rte_cryptodev_queue_pair_attach_sym_session call
  from the IPSec gw app, since the function is deprecated now.
- Added patch announcing a replacement of some of the crypto
  feature flags
- Added patch renaming two symmetric specific functions
  from *_session_* to *_sym_session_*.

v3:
- Added an extra deprecation announcement (replacing rte_pci_device
  with rte_device)
- Rebased against latest DPDK code

v2:
- Added an extra deprecation announcement
- Bonded the other two deprecation notices with the new one in a
  patchset

Pablo de Lara (6):
  doc: announce ABI change for crypto sym info struct
  doc: announce ABI change for crypto info struct
  doc: announce deprecation for attach/detach crypto session
  doc: announce deprecation in crypto queue pair start/stop
  doc: announce deprecation in crypto feature flags
  cryptodev: rename get session size API

 app/test-crypto-perf/main.c                   |  2 +-
 doc/guides/prog_guide/cryptodev_lib.rst       |  6 ++--
 doc/guides/rel_notes/deprecation.rst          | 25 +++++++++++++
 drivers/crypto/aesni_gcm/aesni_gcm_pmd.c      |  2 +-
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c    |  2 +-
 drivers/crypto/armv8/rte_armv8_pmd.c          |  2 +-
 drivers/crypto/kasumi/rte_kasumi_pmd.c        |  2 +-
 drivers/crypto/openssl/rte_openssl_pmd.c      |  2 +-
 drivers/crypto/snow3g/rte_snow3g_pmd.c        |  2 +-
 drivers/crypto/zuc/rte_zuc_pmd.c              |  2 +-
 examples/ipsec-secgw/ipsec-secgw.c            |  2 +-
 examples/ipsec-secgw/ipsec.c                  | 12 -------
 examples/l2fwd-crypto/main.c                  |  2 +-
 examples/vhost_crypto/main.c                  |  2 +-
 lib/librte_cryptodev/rte_cryptodev.c          | 12 +++++++
 lib/librte_cryptodev/rte_cryptodev.h          | 35 +++++++++++++++++++
 .../rte_cryptodev_version.map                 |  8 +++++
 test/test/test_cryptodev.c                    |  6 ++--
 test/test/test_event_crypto_adapter.c         |  2 +-
 19 files changed, 99 insertions(+), 29 deletions(-)
  
Deepak Kumar JAIN May 22, 2018, 2:30 p.m. UTC | #15
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara
> Sent: Monday, May 21, 2018 2:09 PM
> To: Doherty, Declan <declan.doherty@intel.com>; akhil.goyal@nxp.com;
> shally.verma@cavium.com
> Cc: dev@dpdk.org; De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Subject: [dpdk-dev] [PATCH v5 0/6] Cryptodev API/ABI deprecation notices
> 
> v5:
> - Renamed rte_cryptodev_get_header_session_size with
>   rte_cryptodev_sym_get_header_session_size, and
>   rte_cryptodev_get_private_session_size with
>   rte_cryptodev_sym_get_private_session_size.
> 
> v4:
> - Fixed DPDK versions called out to deprecate/remove API.
> - Removed rte_cryptodev_queue_pair_attach_sym_session call
>   from the IPSec gw app, since the function is deprecated now.
> - Added patch announcing a replacement of some of the crypto
>   feature flags
> - Added patch renaming two symmetric specific functions
>   from *_session_* to *_sym_session_*.
> 
> v3:
> - Added an extra deprecation announcement (replacing rte_pci_device
>   with rte_device)
> - Rebased against latest DPDK code
> 
> v2:
> - Added an extra deprecation announcement
> - Bonded the other two deprecation notices with the new one in a
>   patchset
> 
> Pablo de Lara (6):
>   doc: announce ABI change for crypto sym info struct
>   doc: announce ABI change for crypto info struct
>   doc: announce deprecation for attach/detach crypto session
>   doc: announce deprecation in crypto queue pair start/stop
>   doc: announce deprecation in crypto feature flags
>   cryptodev: rename get session size API
> 
>  app/test-crypto-perf/main.c                   |  2 +-
>  doc/guides/prog_guide/cryptodev_lib.rst       |  6 ++--
>  doc/guides/rel_notes/deprecation.rst          | 25 +++++++++++++
>  drivers/crypto/aesni_gcm/aesni_gcm_pmd.c      |  2 +-
>  drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c    |  2 +-
>  drivers/crypto/armv8/rte_armv8_pmd.c          |  2 +-
>  drivers/crypto/kasumi/rte_kasumi_pmd.c        |  2 +-
>  drivers/crypto/openssl/rte_openssl_pmd.c      |  2 +-
>  drivers/crypto/snow3g/rte_snow3g_pmd.c        |  2 +-
>  drivers/crypto/zuc/rte_zuc_pmd.c              |  2 +-
>  examples/ipsec-secgw/ipsec-secgw.c            |  2 +-
>  examples/ipsec-secgw/ipsec.c                  | 12 -------
>  examples/l2fwd-crypto/main.c                  |  2 +-
>  examples/vhost_crypto/main.c                  |  2 +-
>  lib/librte_cryptodev/rte_cryptodev.c          | 12 +++++++
>  lib/librte_cryptodev/rte_cryptodev.h          | 35 +++++++++++++++++++
>  .../rte_cryptodev_version.map                 |  8 +++++
>  test/test/test_cryptodev.c                    |  6 ++--
>  test/test/test_event_crypto_adapter.c         |  2 +-
>  19 files changed, 99 insertions(+), 29 deletions(-)
> 
> --
> 2.17.0

Series Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
  
De Lara Guarch, Pablo May 22, 2018, 2:35 p.m. UTC | #16
> -----Original Message-----
> From: Jain, Deepak K
> Sent: Tuesday, May 22, 2018 3:30 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Doherty, Declan
> <declan.doherty@intel.com>; akhil.goyal@nxp.com; shally.verma@cavium.com
> Cc: dev@dpdk.org; De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Subject: RE: [dpdk-dev] [PATCH v5 0/6] Cryptodev API/ABI deprecation notices
> 
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara
> > Sent: Monday, May 21, 2018 2:09 PM
> > To: Doherty, Declan <declan.doherty@intel.com>; akhil.goyal@nxp.com;
> > shally.verma@cavium.com
> > Cc: dev@dpdk.org; De Lara Guarch, Pablo
> > <pablo.de.lara.guarch@intel.com>
> > Subject: [dpdk-dev] [PATCH v5 0/6] Cryptodev API/ABI deprecation
> > notices
> >
> > v5:
> > - Renamed rte_cryptodev_get_header_session_size with
> >   rte_cryptodev_sym_get_header_session_size, and
> >   rte_cryptodev_get_private_session_size with
> >   rte_cryptodev_sym_get_private_session_size.
> >
> > v4:
> > - Fixed DPDK versions called out to deprecate/remove API.
> > - Removed rte_cryptodev_queue_pair_attach_sym_session call
> >   from the IPSec gw app, since the function is deprecated now.
> > - Added patch announcing a replacement of some of the crypto
> >   feature flags
> > - Added patch renaming two symmetric specific functions
> >   from *_session_* to *_sym_session_*.
> >
> > v3:
> > - Added an extra deprecation announcement (replacing rte_pci_device
> >   with rte_device)
> > - Rebased against latest DPDK code
> >
> > v2:
> > - Added an extra deprecation announcement
> > - Bonded the other two deprecation notices with the new one in a
> >   patchset
> >
> > Pablo de Lara (6):
> >   doc: announce ABI change for crypto sym info struct
> >   doc: announce ABI change for crypto info struct
> >   doc: announce deprecation for attach/detach crypto session
> >   doc: announce deprecation in crypto queue pair start/stop
> >   doc: announce deprecation in crypto feature flags
> >   cryptodev: rename get session size API
> >
> >  app/test-crypto-perf/main.c                   |  2 +-
> >  doc/guides/prog_guide/cryptodev_lib.rst       |  6 ++--
> >  doc/guides/rel_notes/deprecation.rst          | 25 +++++++++++++
> >  drivers/crypto/aesni_gcm/aesni_gcm_pmd.c      |  2 +-
> >  drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c    |  2 +-
> >  drivers/crypto/armv8/rte_armv8_pmd.c          |  2 +-
> >  drivers/crypto/kasumi/rte_kasumi_pmd.c        |  2 +-
> >  drivers/crypto/openssl/rte_openssl_pmd.c      |  2 +-
> >  drivers/crypto/snow3g/rte_snow3g_pmd.c        |  2 +-
> >  drivers/crypto/zuc/rte_zuc_pmd.c              |  2 +-
> >  examples/ipsec-secgw/ipsec-secgw.c            |  2 +-
> >  examples/ipsec-secgw/ipsec.c                  | 12 -------
> >  examples/l2fwd-crypto/main.c                  |  2 +-
> >  examples/vhost_crypto/main.c                  |  2 +-
> >  lib/librte_cryptodev/rte_cryptodev.c          | 12 +++++++
> >  lib/librte_cryptodev/rte_cryptodev.h          | 35 +++++++++++++++++++
> >  .../rte_cryptodev_version.map                 |  8 +++++
> >  test/test/test_cryptodev.c                    |  6 ++--
> >  test/test/test_event_crypto_adapter.c         |  2 +-
> >  19 files changed, 99 insertions(+), 29 deletions(-)
> >
> > --
> > 2.17.0
> 
> Series Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>

Applied to dpdk-next-crypto.
Thanks,

Pablo
  

Patch

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index d59ad5988..5588ba7c1 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -59,3 +59,8 @@  Deprecation Notices
   be added between the producer and consumer structures. The size of the
   structure and the offset of the fields will remain the same on
   platforms with 64B cache line, but will change on other platforms.
+
+* cryptodev: The structure ``sym``, including its fields ``max_nb_sessions``
+  and ``max_nb_sessions_per_qp``, in structure ``rte_cryptodev_info``,
+  will be removed in 18.05, as these fields are not relevant anymore
+  since the session mempool is not internal in the crypto device anymore.