DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] doc: announce deprecation of cmdline_poll
@ 2023-03-14 17:18 Stephen Hemminger
  2023-03-14 23:01 ` Stephen Hemminger
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Stephen Hemminger @ 2023-03-14 17:18 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger

Function was added by commit 067855e651d6 ("cmdline: add polling mode")
but never tested or used by DPDK applications. Mark it for
future removal.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 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 872847e938ed..28c458591a68 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -135,3 +135,8 @@ Deprecation Notices
   Its removal has been postponed to let potential users report interest
   in maintaining it.
   In the absence of such interest, this library will be removed in DPDK 23.11.
+
+* cmdline: The function ``cmdline_poll`` does not work correctly on either
+  Linux or Windows and is unused by any part of DPDK.
+  It will be marked deprecated
+  starting in the 23.07 relead and removed in DPDK 23.11.
-- 
2.39.2


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

* Re: [PATCH] doc: announce deprecation of cmdline_poll
  2023-03-14 17:18 [PATCH] doc: announce deprecation of cmdline_poll Stephen Hemminger
@ 2023-03-14 23:01 ` Stephen Hemminger
  2023-07-28 10:12   ` Maxime Coquelin
  2023-06-26 16:38 ` Stephen Hemminger
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2023-03-14 23:01 UTC (permalink / raw)
  To: dev

On Tue, 14 Mar 2023 10:18:58 -0700
Stephen Hemminger <stephen@networkplumber.org> wrote:

> Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> but never tested or used by DPDK applications. Mark it for
> future removal.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

FYI - checked and none of the DPDK projects on github are using this API.
I.e Vpp, yastack, Trex, ANS, BESS, conntrail, ...


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

* Re: [PATCH] doc: announce deprecation of cmdline_poll
  2023-03-14 17:18 [PATCH] doc: announce deprecation of cmdline_poll Stephen Hemminger
  2023-03-14 23:01 ` Stephen Hemminger
@ 2023-06-26 16:38 ` Stephen Hemminger
  2023-07-28  9:44   ` Thomas Monjalon
  2023-07-28  9:45 ` Bruce Richardson
  2023-07-28 10:15 ` [PATCH v2] " Bruce Richardson
  3 siblings, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2023-06-26 16:38 UTC (permalink / raw)
  To: dev

On Tue, 14 Mar 2023 10:18:58 -0700
Stephen Hemminger <stephen@networkplumber.org> wrote:

> Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> but never tested or used by DPDK applications. Mark it for
> future removal.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  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 872847e938ed..28c458591a68 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -135,3 +135,8 @@ Deprecation Notices
>    Its removal has been postponed to let potential users report interest
>    in maintaining it.
>    In the absence of such interest, this library will be removed in DPDK 23.11.
> +
> +* cmdline: The function ``cmdline_poll`` does not work correctly on either
> +  Linux or Windows and is unused by any part of DPDK.
> +  It will be marked deprecated
> +  starting in the 23.07 relead and removed in DPDK 23.11.

This patch was put out in March and should be merged for 23.07 so that
the dead function can be removed in 23.11.

Why the no response on this? The function was never used and if anyone did
try to use it would have discovered it was broken.

Should it just be removed in 23.11 without warning?

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

* Re: [PATCH] doc: announce deprecation of cmdline_poll
  2023-06-26 16:38 ` Stephen Hemminger
@ 2023-07-28  9:44   ` Thomas Monjalon
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Monjalon @ 2023-07-28  9:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev, olivier.matz, techboard

26/06/2023 18:38, Stephen Hemminger:
> On Tue, 14 Mar 2023 10:18:58 -0700
> Stephen Hemminger <stephen@networkplumber.org> wrote:
> 
> > Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> > but never tested or used by DPDK applications. Mark it for
> > future removal.
> > 
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> > ---
> >  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 872847e938ed..28c458591a68 100644
> > --- a/doc/guides/rel_notes/deprecation.rst
> > +++ b/doc/guides/rel_notes/deprecation.rst
> > @@ -135,3 +135,8 @@ Deprecation Notices
> >    Its removal has been postponed to let potential users report interest
> >    in maintaining it.
> >    In the absence of such interest, this library will be removed in DPDK 23.11.
> > +
> > +* cmdline: The function ``cmdline_poll`` does not work correctly on either
> > +  Linux or Windows and is unused by any part of DPDK.
> > +  It will be marked deprecated
> > +  starting in the 23.07 relead and removed in DPDK 23.11.

There is no patch to mark the function deprecated as far as I know.

> This patch was put out in March and should be merged for 23.07 so that
> the dead function can be removed in 23.11.
> 
> Why the no response on this? The function was never used and if anyone did
> try to use it would have discovered it was broken.

It would have helped to add few people in Cc list.

> Should it just be removed in 23.11 without warning?

We could take it with the Technical Board.



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

* Re: [PATCH] doc: announce deprecation of cmdline_poll
  2023-03-14 17:18 [PATCH] doc: announce deprecation of cmdline_poll Stephen Hemminger
  2023-03-14 23:01 ` Stephen Hemminger
  2023-06-26 16:38 ` Stephen Hemminger
@ 2023-07-28  9:45 ` Bruce Richardson
  2023-07-28 10:15 ` [PATCH v2] " Bruce Richardson
  3 siblings, 0 replies; 10+ messages in thread
From: Bruce Richardson @ 2023-07-28  9:45 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

On Tue, Mar 14, 2023 at 10:18:58AM -0700, Stephen Hemminger wrote:
> Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> but never tested or used by DPDK applications. Mark it for
> future removal.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  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 872847e938ed..28c458591a68 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -135,3 +135,8 @@ Deprecation Notices
>    Its removal has been postponed to let potential users report interest
>    in maintaining it.
>    In the absence of such interest, this library will be removed in DPDK 23.11.
> +
> +* cmdline: The function ``cmdline_poll`` does not work correctly on either
> +  Linux or Windows and is unused by any part of DPDK.
> +  It will be marked deprecated
> +  starting in the 23.07 relead and removed in DPDK 23.11.

typo: "release".

We also should ack a "deprecated" tag on the function to give build-time
warnings. Since we are in the middle of having patches merged, I'll spin a
v2 for you to save time.
> -- 
> 2.39.2
> 

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

* Re: [PATCH] doc: announce deprecation of cmdline_poll
  2023-03-14 23:01 ` Stephen Hemminger
@ 2023-07-28 10:12   ` Maxime Coquelin
  0 siblings, 0 replies; 10+ messages in thread
From: Maxime Coquelin @ 2023-07-28 10:12 UTC (permalink / raw)
  To: Stephen Hemminger, dev



On 3/15/23 00:01, Stephen Hemminger wrote:
> On Tue, 14 Mar 2023 10:18:58 -0700
> Stephen Hemminger <stephen@networkplumber.org> wrote:
> 
>> Function was added by commit 067855e651d6 ("cmdline: add polling mode")
>> but never tested or used by DPDK applications. Mark it for
>> future removal.
>>
>> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> 
> FYI - checked and none of the DPDK projects on github are using this API.
> I.e Vpp, yastack, Trex, ANS, BESS, conntrail, ...
> 

I also checked and could not find any DPDK app using this API.

Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime


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

* [PATCH v2] doc: announce deprecation of cmdline_poll
  2023-03-14 17:18 [PATCH] doc: announce deprecation of cmdline_poll Stephen Hemminger
                   ` (2 preceding siblings ...)
  2023-07-28  9:45 ` Bruce Richardson
@ 2023-07-28 10:15 ` Bruce Richardson
  2023-07-28 10:26   ` Maxime Coquelin
  2023-07-28 10:28   ` Burakov, Anatoly
  3 siblings, 2 replies; 10+ messages in thread
From: Bruce Richardson @ 2023-07-28 10:15 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, Bruce Richardson, Olivier Matz

From: Stephen Hemminger <stephen@networkplumber.org>

Function was added by commit 067855e651d6 ("cmdline: add polling mode")
but never tested or used by DPDK applications. Mark it for
future removal.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

---
v2: Add deprecated tag to function and doxygen comment.
---
 doc/guides/rel_notes/deprecation.rst | 4 ++++
 lib/cmdline/cmdline.h                | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index fb771a0305..78d56a0ab4 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -161,3 +161,7 @@ Deprecation Notices
   The new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status
   starting with DPDK 23.07 release.
+
+* cmdline: The function ``cmdline_poll`` does not work correctly on either
+  Linux or Windows and is unused by any part of DPDK.
+  This function is now deprecated and will be removed in DPDK 23.11.
diff --git a/lib/cmdline/cmdline.h b/lib/cmdline/cmdline.h
index b14355ef51..52c89b48bc 100644
--- a/lib/cmdline/cmdline.h
+++ b/lib/cmdline/cmdline.h
@@ -44,6 +44,8 @@ struct rdline *
 cmdline_get_rdline(struct cmdline *cl);
 
 /**
+ * @deprecated Function is broken and scheduled for removal
+ *
  * This function is nonblocking equivalent of ``cmdline_interact()``. It polls
  * *cl* for one character and interpret it. If return value is *RDLINE_EXITED*
  * it mean that ``cmdline_quit()`` was invoked.
@@ -55,6 +57,7 @@ cmdline_get_rdline(struct cmdline *cl);
  *   On success return object status - one of *enum rdline_status*.
  *   On error return negative value.
  */
+__rte_deprecated
 int cmdline_poll(struct cmdline *cl);
 
 void cmdline_interact(struct cmdline *cl);
-- 
2.39.2


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

* Re: [PATCH v2] doc: announce deprecation of cmdline_poll
  2023-07-28 10:15 ` [PATCH v2] " Bruce Richardson
@ 2023-07-28 10:26   ` Maxime Coquelin
  2023-07-28 10:39     ` Thomas Monjalon
  2023-07-28 10:28   ` Burakov, Anatoly
  1 sibling, 1 reply; 10+ messages in thread
From: Maxime Coquelin @ 2023-07-28 10:26 UTC (permalink / raw)
  To: Bruce Richardson, dev; +Cc: Stephen Hemminger, Olivier Matz



On 7/28/23 12:15, Bruce Richardson wrote:
> From: Stephen Hemminger <stephen@networkplumber.org>
> 
> Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> but never tested or used by DPDK applications. Mark it for
> future removal.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> ---
> v2: Add deprecated tag to function and doxygen comment.
> ---
>   doc/guides/rel_notes/deprecation.rst | 4 ++++
>   lib/cmdline/cmdline.h                | 3 +++
>   2 files changed, 7 insertions(+)
> 
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index fb771a0305..78d56a0ab4 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -161,3 +161,7 @@ Deprecation Notices
>     The new port library API (functions rte_swx_port_*)
>     will gradually transition from experimental to stable status
>     starting with DPDK 23.07 release.
> +
> +* cmdline: The function ``cmdline_poll`` does not work correctly on either
> +  Linux or Windows and is unused by any part of DPDK.
> +  This function is now deprecated and will be removed in DPDK 23.11.
> diff --git a/lib/cmdline/cmdline.h b/lib/cmdline/cmdline.h
> index b14355ef51..52c89b48bc 100644
> --- a/lib/cmdline/cmdline.h
> +++ b/lib/cmdline/cmdline.h
> @@ -44,6 +44,8 @@ struct rdline *
>   cmdline_get_rdline(struct cmdline *cl);
>   
>   /**
> + * @deprecated Function is broken and scheduled for removal
> + *
>    * This function is nonblocking equivalent of ``cmdline_interact()``. It polls
>    * *cl* for one character and interpret it. If return value is *RDLINE_EXITED*
>    * it mean that ``cmdline_quit()`` was invoked.
> @@ -55,6 +57,7 @@ cmdline_get_rdline(struct cmdline *cl);
>    *   On success return object status - one of *enum rdline_status*.
>    *   On error return negative value.
>    */
> +__rte_deprecated
>   int cmdline_poll(struct cmdline *cl);
>   
>   void cmdline_interact(struct cmdline *cl);

Reporting the ack I just provided on v1:

Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime


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

* Re: [PATCH v2] doc: announce deprecation of cmdline_poll
  2023-07-28 10:15 ` [PATCH v2] " Bruce Richardson
  2023-07-28 10:26   ` Maxime Coquelin
@ 2023-07-28 10:28   ` Burakov, Anatoly
  1 sibling, 0 replies; 10+ messages in thread
From: Burakov, Anatoly @ 2023-07-28 10:28 UTC (permalink / raw)
  To: Bruce Richardson, dev; +Cc: Stephen Hemminger, Olivier Matz

On 7/28/2023 11:15 AM, Bruce Richardson wrote:
> From: Stephen Hemminger <stephen@networkplumber.org>
> 
> Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> but never tested or used by DPDK applications. Mark it for
> future removal.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> ---
> v2: Add deprecated tag to function and doxygen comment.
> ---
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

-- 
Thanks,
Anatoly


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

* Re: [PATCH v2] doc: announce deprecation of cmdline_poll
  2023-07-28 10:26   ` Maxime Coquelin
@ 2023-07-28 10:39     ` Thomas Monjalon
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Monjalon @ 2023-07-28 10:39 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, Stephen Hemminger, Olivier Matz, Maxime Coquelin

28/07/2023 12:26, Maxime Coquelin:
> 
> On 7/28/23 12:15, Bruce Richardson wrote:
> > From: Stephen Hemminger <stephen@networkplumber.org>
> > 
> > Function was added by commit 067855e651d6 ("cmdline: add polling mode")
> > but never tested or used by DPDK applications. Mark it for
> > future removal.
> > 
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > 
> > ---
> > v2: Add deprecated tag to function and doxygen comment.
> > ---
> 
> Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Acked-by: Thomas Monjalon <thomas@monjalon.net>

Applied, thanks.



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

end of thread, other threads:[~2023-07-28 10:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 17:18 [PATCH] doc: announce deprecation of cmdline_poll Stephen Hemminger
2023-03-14 23:01 ` Stephen Hemminger
2023-07-28 10:12   ` Maxime Coquelin
2023-06-26 16:38 ` Stephen Hemminger
2023-07-28  9:44   ` Thomas Monjalon
2023-07-28  9:45 ` Bruce Richardson
2023-07-28 10:15 ` [PATCH v2] " Bruce Richardson
2023-07-28 10:26   ` Maxime Coquelin
2023-07-28 10:39     ` Thomas Monjalon
2023-07-28 10:28   ` Burakov, Anatoly

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).