DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] bbdev: add missing experimental tags
@ 2018-12-04 20:57 David Marchand
  2018-12-05 12:23 ` Neil Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: David Marchand @ 2018-12-04 20:57 UTC (permalink / raw)
  To: dev; +Cc: stable, nhorman, tredaelli, ferruh.yigit, amr.mokhtar

Those two symbols are missing the experimental tag in the library
header.
Because of this, a user can try to call this symbol without being aware
this is an experimental api (neither compilation nor link warning).

Fixes: 4935e1e9f76e ("bbdev: introduce wireless base band device lib")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/librte_bbdev/rte_bbdev_op.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_bbdev/rte_bbdev_op.h b/lib/librte_bbdev/rte_bbdev_op.h
index 83f62c2..c9200b5 100644
--- a/lib/librte_bbdev/rte_bbdev_op.h
+++ b/lib/librte_bbdev/rte_bbdev_op.h
@@ -459,7 +459,7 @@ struct rte_bbdev_op_pool_private {
  *   Operation type as string or NULL if op_type is invalid
  *
  */
-const char*
+__rte_experimental const char *
 rte_bbdev_op_type_str(enum rte_bbdev_op_type op_type);
 
 /**
@@ -482,7 +482,7 @@ struct rte_bbdev_op_pool_private {
  *   - Pointer to a mempool on success,
  *   - NULL pointer on failure.
  */
-struct rte_mempool *
+__rte_experimental struct rte_mempool *
 rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type,
 		unsigned int num_elements, unsigned int cache_size,
 		int socket_id);
-- 
1.8.3.1

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-04 20:57 [dpdk-dev] [PATCH] bbdev: add missing experimental tags David Marchand
@ 2018-12-05 12:23 ` Neil Horman
  2018-12-05 16:46 ` Mokhtar, Amr
  2018-12-14  9:54 ` Akhil Goyal
  2 siblings, 0 replies; 11+ messages in thread
From: Neil Horman @ 2018-12-05 12:23 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, stable, tredaelli, ferruh.yigit, amr.mokhtar

On Tue, Dec 04, 2018 at 09:57:45PM +0100, David Marchand wrote:
> Those two symbols are missing the experimental tag in the library
> header.
> Because of this, a user can try to call this symbol without being aware
> this is an experimental api (neither compilation nor link warning).
> 
> Fixes: 4935e1e9f76e ("bbdev: introduce wireless base band device lib")
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  lib/librte_bbdev/rte_bbdev_op.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/librte_bbdev/rte_bbdev_op.h b/lib/librte_bbdev/rte_bbdev_op.h
> index 83f62c2..c9200b5 100644
> --- a/lib/librte_bbdev/rte_bbdev_op.h
> +++ b/lib/librte_bbdev/rte_bbdev_op.h
> @@ -459,7 +459,7 @@ struct rte_bbdev_op_pool_private {
>   *   Operation type as string or NULL if op_type is invalid
>   *
>   */
> -const char*
> +__rte_experimental const char *
>  rte_bbdev_op_type_str(enum rte_bbdev_op_type op_type);
>  
>  /**
> @@ -482,7 +482,7 @@ struct rte_bbdev_op_pool_private {
>   *   - Pointer to a mempool on success,
>   *   - NULL pointer on failure.
>   */
> -struct rte_mempool *
> +__rte_experimental struct rte_mempool *
>  rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type,
>  		unsigned int num_elements, unsigned int cache_size,
>  		int socket_id);
> -- 
> 1.8.3.1
> 
> 
Acked-by: Neil Horman <nhorman@tuxdriver.com>

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-04 20:57 [dpdk-dev] [PATCH] bbdev: add missing experimental tags David Marchand
  2018-12-05 12:23 ` Neil Horman
@ 2018-12-05 16:46 ` Mokhtar, Amr
  2018-12-14  9:54 ` Akhil Goyal
  2 siblings, 0 replies; 11+ messages in thread
From: Mokhtar, Amr @ 2018-12-05 16:46 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: stable, nhorman, tredaelli, Yigit, Ferruh


> -----Original Message-----
> From: David Marchand [mailto:david.marchand@redhat.com]
> Sent: Tuesday 4 December 2018 20:58
> To: dev@dpdk.org
> Cc: stable@dpdk.org; nhorman@tuxdriver.com; tredaelli@redhat.com;
> Yigit, Ferruh <ferruh.yigit@intel.com>; Mokhtar, Amr
> <amr.mokhtar@intel.com>
> Subject: [PATCH] bbdev: add missing experimental tags
> 
> Those two symbols are missing the experimental tag in the library
> header.
> Because of this, a user can try to call this symbol without being aware
> this is an experimental api (neither compilation nor link warning).
> 
> Fixes: 4935e1e9f76e ("bbdev: introduce wireless base band device lib")
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---

Acked-by: Amr Mokhtar <amr.mokhtar@intel.com>

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-04 20:57 [dpdk-dev] [PATCH] bbdev: add missing experimental tags David Marchand
  2018-12-05 12:23 ` Neil Horman
  2018-12-05 16:46 ` Mokhtar, Amr
@ 2018-12-14  9:54 ` Akhil Goyal
  2018-12-14 10:00   ` David Marchand
  2 siblings, 1 reply; 11+ messages in thread
From: Akhil Goyal @ 2018-12-14  9:54 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: stable, nhorman, tredaelli, ferruh.yigit, amr.mokhtar

Hi David,

On 12/5/2018 2:27 AM, David Marchand wrote:
> Those two symbols are missing the experimental tag in the library
> header.
> Because of this, a user can try to call this symbol without being aware
> this is an experimental api (neither compilation nor link warning).
>
> Fixes: 4935e1e9f76e ("bbdev: introduce wireless base band device lib")
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>   lib/librte_bbdev/rte_bbdev_op.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/librte_bbdev/rte_bbdev_op.h b/lib/librte_bbdev/rte_bbdev_op.h
> index 83f62c2..c9200b5 100644
> --- a/lib/librte_bbdev/rte_bbdev_op.h
> +++ b/lib/librte_bbdev/rte_bbdev_op.h
> @@ -459,7 +459,7 @@ struct rte_bbdev_op_pool_private {
>    *   Operation type as string or NULL if op_type is invalid
>    *
>    */
> -const char*
> +__rte_experimental const char *
>   rte_bbdev_op_type_str(enum rte_bbdev_op_type op_type);
>   
>   /**
> @@ -482,7 +482,7 @@ struct rte_bbdev_op_pool_private {
>    *   - Pointer to a mempool on success,
>    *   - NULL pointer on failure.
>    */
> -struct rte_mempool *
> +__rte_experimental struct rte_mempool *
>   rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type,
>   		unsigned int num_elements, unsigned int cache_size,
>   		int socket_id);
I can see that there are other APIs as well which are not marked as 
experimental like rte_bbdev_dec_op_alloc_bulk
rte_bbdev_dec_op_free_bulk, rte_bbdev_enqueue_enc_ops etc.

-Akhil



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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-14  9:54 ` Akhil Goyal
@ 2018-12-14 10:00   ` David Marchand
  2018-12-14 12:35     ` Neil Horman
  0 siblings, 1 reply; 11+ messages in thread
From: David Marchand @ 2018-12-14 10:00 UTC (permalink / raw)
  To: Akhil Goyal, nhorman; +Cc: dev, stable, tredaelli, ferruh.yigit, amr.mokhtar

On Fri, Dec 14, 2018 at 10:54 AM Akhil Goyal <akhil.goyal@nxp.com> wrote:

> Hi David,
>
> I can see that there are other APIs as well which are not marked as
> experimental like rte_bbdev_dec_op_alloc_bulk
> rte_bbdev_dec_op_free_bulk, rte_bbdev_enqueue_enc_ops etc.
>

Well, that's the problem with inlines...
I don't think we can detect these easily.


-- 
David Marchand

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-14 10:00   ` David Marchand
@ 2018-12-14 12:35     ` Neil Horman
  2018-12-14 12:52       ` Mokhtar, Amr
  0 siblings, 1 reply; 11+ messages in thread
From: Neil Horman @ 2018-12-14 12:35 UTC (permalink / raw)
  To: David Marchand
  Cc: Akhil Goyal, dev, stable, tredaelli, ferruh.yigit, amr.mokhtar

On Fri, Dec 14, 2018 at 11:00:17AM +0100, David Marchand wrote:
> On Fri, Dec 14, 2018 at 10:54 AM Akhil Goyal <akhil.goyal@nxp.com> wrote:
> 
> > Hi David,
> >
> > I can see that there are other APIs as well which are not marked as
> > experimental like rte_bbdev_dec_op_alloc_bulk
> > rte_bbdev_dec_op_free_bulk, rte_bbdev_enqueue_enc_ops etc.
> >
> 
> Well, that's the problem with inlines...
> I don't think we can detect these easily.
> 
We can, if the symbols get added to the version map as they should.  But (as you
note), because these functions are inlines, theres no error thrown for not
following that rule.

> 
> -- 
> David Marchand

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-14 12:35     ` Neil Horman
@ 2018-12-14 12:52       ` Mokhtar, Amr
  2018-12-18 10:37         ` David Marchand
  0 siblings, 1 reply; 11+ messages in thread
From: Mokhtar, Amr @ 2018-12-14 12:52 UTC (permalink / raw)
  To: Neil Horman, David Marchand
  Cc: Akhil Goyal, dev, stable, tredaelli, Yigit, Ferruh


> -----Original Message-----
> From: Neil Horman [mailto:nhorman@tuxdriver.com]
> Sent: Friday 14 December 2018 12:36
> To: David Marchand <david.marchand@redhat.com>
> Cc: Akhil Goyal <akhil.goyal@nxp.com>; dev@dpdk.org; stable@dpdk.org;
> tredaelli@redhat.com; Yigit, Ferruh <ferruh.yigit@intel.com>; Mokhtar,
> Amr <amr.mokhtar@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
> 
> On Fri, Dec 14, 2018 at 11:00:17AM +0100, David Marchand wrote:
> > On Fri, Dec 14, 2018 at 10:54 AM Akhil Goyal <akhil.goyal@nxp.com>
> wrote:
> >
> > > Hi David,
> > >
> > > I can see that there are other APIs as well which are not marked as
> > > experimental like rte_bbdev_dec_op_alloc_bulk
> > > rte_bbdev_dec_op_free_bulk, rte_bbdev_enqueue_enc_ops etc.
> > >

It seems that all APIs defined in rte_bbdev_op.h are missing their
experimental tags.

> >
> > Well, that's the problem with inlines...
> > I don't think we can detect these easily.
> >
> We can, if the symbols get added to the version map as they should.  But
> (as you
> note), because these functions are inlines, theres no error thrown for not
> following that rule.
> 

Right, there are some APIs missing in the map file.
I am submitting a patch of those functions missing.

> >
> > --
> > David Marchand

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-14 12:52       ` Mokhtar, Amr
@ 2018-12-18 10:37         ` David Marchand
  2018-12-18 10:43           ` Akhil Goyal
  0 siblings, 1 reply; 11+ messages in thread
From: David Marchand @ 2018-12-18 10:37 UTC (permalink / raw)
  To: Akhil Goyal
  Cc: Neil Horman, dev, stable, tredaelli, Yigit, Ferruh, amr.mokhtar

Hello Akhil,

On Fri, Dec 14, 2018 at 1:52 PM Mokhtar, Amr <amr.mokhtar@intel.com> wrote:

>
> > -----Original Message-----
> > From: Neil Horman [mailto:nhorman@tuxdriver.com]
> > Sent: Friday 14 December 2018 12:36
> > To: David Marchand <david.marchand@redhat.com>
> > Cc: Akhil Goyal <akhil.goyal@nxp.com>; dev@dpdk.org; stable@dpdk.org;
> > tredaelli@redhat.com; Yigit, Ferruh <ferruh.yigit@intel.com>; Mokhtar,
> > Amr <amr.mokhtar@intel.com>
> > Subject: Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
> >
> > On Fri, Dec 14, 2018 at 11:00:17AM +0100, David Marchand wrote:
> > > On Fri, Dec 14, 2018 at 10:54 AM Akhil Goyal <akhil.goyal@nxp.com>
> > wrote:
> > >
> > > > Hi David,
> > > >
> > > > I can see that there are other APIs as well which are not marked as
> > > > experimental like rte_bbdev_dec_op_alloc_bulk
> > > > rte_bbdev_dec_op_free_bulk, rte_bbdev_enqueue_enc_ops etc.
> > > >
>
> It seems that all APIs defined in rte_bbdev_op.h are missing their
> experimental tags.
>
> > >
> > > Well, that's the problem with inlines...
> > > I don't think we can detect these easily.
> > >
> > We can, if the symbols get added to the version map as they should.  But
> > (as you
> > note), because these functions are inlines, theres no error thrown for
> not
> > following that rule.
> >
>
> Right, there are some APIs missing in the map file.
> I am submitting a patch of those functions missing.
>

Sorry, did not follow up on this.
My patch has been marked as "Changes Requested" in pw but Amr volunteered
to fix those issues.

How do we proceed, do you want a single fix ? or you can already pick mine.


-- 
David Marchand

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-18 10:37         ` David Marchand
@ 2018-12-18 10:43           ` Akhil Goyal
  2018-12-18 10:48             ` David Marchand
  0 siblings, 1 reply; 11+ messages in thread
From: Akhil Goyal @ 2018-12-18 10:43 UTC (permalink / raw)
  To: David Marchand, amr.mokhtar
  Cc: Neil Horman, dev, stable, tredaelli, Yigit, Ferruh


Hi David,

On 12/18/2018 4:07 PM, David Marchand wrote:
> Hello Akhil,
>
> On Fri, Dec 14, 2018 at 1:52 PM Mokhtar, Amr <amr.mokhtar@intel.com> wrote:
>
>>> -----Original Message-----
>>> From: Neil Horman [mailto:nhorman@tuxdriver.com]
>>> Sent: Friday 14 December 2018 12:36
>>> To: David Marchand <david.marchand@redhat.com>
>>> Cc: Akhil Goyal <akhil.goyal@nxp.com>; dev@dpdk.org; stable@dpdk.org;
>>> tredaelli@redhat.com; Yigit, Ferruh <ferruh.yigit@intel.com>; Mokhtar,
>>> Amr <amr.mokhtar@intel.com>
>>> Subject: Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
>>>
>>> On Fri, Dec 14, 2018 at 11:00:17AM +0100, David Marchand wrote:
>>>> On Fri, Dec 14, 2018 at 10:54 AM Akhil Goyal <akhil.goyal@nxp.com>
>>> wrote:
>>>>> Hi David,
>>>>>
>>>>> I can see that there are other APIs as well which are not marked as
>>>>> experimental like rte_bbdev_dec_op_alloc_bulk
>>>>> rte_bbdev_dec_op_free_bulk, rte_bbdev_enqueue_enc_ops etc.
>>>>>
>> It seems that all APIs defined in rte_bbdev_op.h are missing their
>> experimental tags.
>>
>>>> Well, that's the problem with inlines...
>>>> I don't think we can detect these easily.
>>>>
>>> We can, if the symbols get added to the version map as they should.  But
>>> (as you
>>> note), because these functions are inlines, theres no error thrown for
>> not
>>> following that rule.
>>>
>> Right, there are some APIs missing in the map file.
>> I am submitting a patch of those functions missing.
>>
> Sorry, did not follow up on this.
> My patch has been marked as "Changes Requested" in pw but Amr volunteered
> to fix those issues.
>
> How do we proceed, do you want a single fix ? or you can already pick mine.
>
>
I believe a single patch should be enough to fix this, it can be either 
you or Amr. As of now, none of the patch is complete.

Thanks,
Akhil

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-18 10:43           ` Akhil Goyal
@ 2018-12-18 10:48             ` David Marchand
  2018-12-19  9:20               ` Mokhtar, Amr
  0 siblings, 1 reply; 11+ messages in thread
From: David Marchand @ 2018-12-18 10:48 UTC (permalink / raw)
  To: Akhil Goyal, amr.mokhtar
  Cc: Neil Horman, dev, stable, tredaelli, Yigit, Ferruh

On Tue, Dec 18, 2018 at 11:43 AM Akhil Goyal <akhil.goyal@nxp.com> wrote:

> Hi David,
>
> On 12/18/2018 4:07 PM, David Marchand wrote:
> > Sorry, did not follow up on this.
> > My patch has been marked as "Changes Requested" in pw but Amr volunteered
> > to fix those issues.
> >
> > How do we proceed, do you want a single fix ? or you can already pick
> mine.
> >
> >
> I believe a single patch should be enough to fix this, it can be either
> you or Amr. As of now, none of the patch is complete.
>

Amr, you seem to have been a bit further than me.
Can you squash my bits in yours ?

Thanks.

-- 
David Marchand

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

* Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags
  2018-12-18 10:48             ` David Marchand
@ 2018-12-19  9:20               ` Mokhtar, Amr
  0 siblings, 0 replies; 11+ messages in thread
From: Mokhtar, Amr @ 2018-12-19  9:20 UTC (permalink / raw)
  To: David Marchand, Akhil Goyal
  Cc: Neil Horman, dev, stable, tredaelli, Yigit, Ferruh



From: David Marchand [mailto:david.marchand@redhat.com]
Sent: Tuesday 18 December 2018 10:49
To: Akhil Goyal <akhil.goyal@nxp.com>; Mokhtar, Amr <amr.mokhtar@intel.com>
Cc: Neil Horman <nhorman@tuxdriver.com>; dev@dpdk.org; stable@dpdk.org; tredaelli@redhat.com; Yigit, Ferruh <ferruh.yigit@intel.com>
Subject: Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags


On Tue, Dec 18, 2018 at 11:43 AM Akhil Goyal <akhil.goyal@nxp.com<mailto:akhil.goyal@nxp.com>> wrote:
Hi David,

On 12/18/2018 4:07 PM, David Marchand wrote:
> Sorry, did not follow up on this.
> My patch has been marked as "Changes Requested" in pw but Amr volunteered
> to fix those issues.
>
> How do we proceed, do you want a single fix ? or you can already pick mine.
>
>
I believe a single patch should be enough to fix this, it can be either
you or Amr. As of now, none of the patch is complete.

Amr, you seem to have been a bit further than me.
Can you squash my bits in yours ?

Agree. I am updating the other patch with all updates.

Thanks.

--
David Marchand

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

end of thread, other threads:[~2018-12-19  9:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 20:57 [dpdk-dev] [PATCH] bbdev: add missing experimental tags David Marchand
2018-12-05 12:23 ` Neil Horman
2018-12-05 16:46 ` Mokhtar, Amr
2018-12-14  9:54 ` Akhil Goyal
2018-12-14 10:00   ` David Marchand
2018-12-14 12:35     ` Neil Horman
2018-12-14 12:52       ` Mokhtar, Amr
2018-12-18 10:37         ` David Marchand
2018-12-18 10:43           ` Akhil Goyal
2018-12-18 10:48             ` David Marchand
2018-12-19  9:20               ` Mokhtar, Amr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).