DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed
@ 2020-09-11  7:35 Phil Yang
  2020-09-11  7:35 ` [dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt Phil Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Phil Yang @ 2020-09-11  7:35 UTC (permalink / raw)
  To: konstantin.ananyev, david.marchand, olivier.matz, dev
  Cc: Honnappa.Nagarahalli, Ruifeng.Wang, nd

Remove the deprecated[1] refcnt_atomic member in structures rte_mbuf and
rte_mbuf_ext_shared_info.

[1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst#L161

Phil Yang (2):
  mbuf: remove generic mbuf atomically accessed refcnt
  mbuf: remove external buffer atomically accessed refcnt

 doc/guides/rel_notes/release_20_11.rst |  2 ++
 lib/librte_mbuf/rte_mbuf_core.h        | 13 ++-----------
 2 files changed, 4 insertions(+), 11 deletions(-)

-- 
2.7.4


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

* [dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt
  2020-09-11  7:35 [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Phil Yang
@ 2020-09-11  7:35 ` Phil Yang
  2020-09-11  7:35 ` [dpdk-dev] [PATCH 2/2] mbuf: remove external buffer " Phil Yang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Phil Yang @ 2020-09-11  7:35 UTC (permalink / raw)
  To: konstantin.ananyev, david.marchand, olivier.matz, dev
  Cc: Honnappa.Nagarahalli, Ruifeng.Wang, nd, John McNamara, Marko Kovacevic

Remove the deprecated refcnt_atomic union fields in rte_mbuf
structure.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
---
 doc/guides/rel_notes/release_20_11.rst | 2 ++
 lib/librte_mbuf/rte_mbuf_core.h        | 7 +------
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst
index df227a1..6eeeffc 100644
--- a/doc/guides/rel_notes/release_20_11.rst
+++ b/doc/guides/rel_notes/release_20_11.rst
@@ -100,6 +100,8 @@ ABI Changes
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* mbuf: The field ``refcnt_atomic`` has been removed from structure
+  ``rte_mbuf``.
 
 Known Issues
 ------------
diff --git a/lib/librte_mbuf/rte_mbuf_core.h b/lib/librte_mbuf/rte_mbuf_core.h
index 8cd7137..71fd6f5 100644
--- a/lib/librte_mbuf/rte_mbuf_core.h
+++ b/lib/librte_mbuf/rte_mbuf_core.h
@@ -495,12 +495,7 @@ struct rte_mbuf {
 	 * or non-atomic) is controlled by the CONFIG_RTE_MBUF_REFCNT_ATOMIC
 	 * config option.
 	 */
-	RTE_STD_C11
-	union {
-		rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */
-		/** Non-atomically accessed refcnt */
-		uint16_t refcnt;
-	};
+	uint16_t refcnt;
 	uint16_t nb_segs;         /**< Number of segments. */
 
 	/** Input port (16 bits to support more than 256 virtual ports).
-- 
2.7.4


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

* [dpdk-dev] [PATCH 2/2] mbuf: remove external buffer atomically accessed refcnt
  2020-09-11  7:35 [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Phil Yang
  2020-09-11  7:35 ` [dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt Phil Yang
@ 2020-09-11  7:35 ` Phil Yang
  2020-09-11  7:39 ` [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Andrew Rybchenko
  2020-09-14 12:25 ` [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters Thomas Monjalon
  3 siblings, 0 replies; 9+ messages in thread
From: Phil Yang @ 2020-09-11  7:35 UTC (permalink / raw)
  To: konstantin.ananyev, david.marchand, olivier.matz, dev
  Cc: Honnappa.Nagarahalli, Ruifeng.Wang, nd, John McNamara, Marko Kovacevic

Remove the deprecated refcnt_atomic union fields in
rte_mbuf_ext_shared_info structure.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng wang <ruifeng.wang@arm.com>
---
 doc/guides/rel_notes/release_20_11.rst | 4 ++--
 lib/librte_mbuf/rte_mbuf_core.h        | 6 +-----
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst
index 6eeeffc..6c90d75 100644
--- a/doc/guides/rel_notes/release_20_11.rst
+++ b/doc/guides/rel_notes/release_20_11.rst
@@ -100,8 +100,8 @@ ABI Changes
    Also, make sure to start the actual text at the margin.
    =======================================================
 
-* mbuf: The field ``refcnt_atomic`` has been removed from structure
-  ``rte_mbuf``.
+* mbuf: The field ``refcnt_atomic`` has been removed from structures
+  ``rte_mbuf`` and ``rte_mbuf_ext_shared_info``.
 
 Known Issues
 ------------
diff --git a/lib/librte_mbuf/rte_mbuf_core.h b/lib/librte_mbuf/rte_mbuf_core.h
index 71fd6f5..cee3d5a 100644
--- a/lib/librte_mbuf/rte_mbuf_core.h
+++ b/lib/librte_mbuf/rte_mbuf_core.h
@@ -674,11 +674,7 @@ typedef void (*rte_mbuf_extbuf_free_callback_t)(void *addr, void *opaque);
 struct rte_mbuf_ext_shared_info {
 	rte_mbuf_extbuf_free_callback_t free_cb; /**< Free callback function */
 	void *fcb_opaque;                        /**< Free callback argument */
-	RTE_STD_C11
-	union {
-		rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */
-		uint16_t refcnt;
-	};
+	uint16_t refcnt;
 };
 
 /**< Maximum number of nb_segs allowed. */
-- 
2.7.4


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

* Re: [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed
  2020-09-11  7:35 [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Phil Yang
  2020-09-11  7:35 ` [dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt Phil Yang
  2020-09-11  7:35 ` [dpdk-dev] [PATCH 2/2] mbuf: remove external buffer " Phil Yang
@ 2020-09-11  7:39 ` Andrew Rybchenko
  2020-09-11 10:57   ` Phil Yang
  2020-09-14 12:25 ` [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters Thomas Monjalon
  3 siblings, 1 reply; 9+ messages in thread
From: Andrew Rybchenko @ 2020-09-11  7:39 UTC (permalink / raw)
  To: Phil Yang, konstantin.ananyev, david.marchand, olivier.matz, dev
  Cc: Honnappa.Nagarahalli, Ruifeng.Wang, nd

On 9/11/20 10:35 AM, Phil Yang wrote:
> Remove the deprecated[1] refcnt_atomic member in structures rte_mbuf and
> rte_mbuf_ext_shared_info.
> 
> [1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst#L161

LGTM, please, cleanup deprecation notice in this patches when
corresponding changes are done.

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

* Re: [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed
  2020-09-11  7:39 ` [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Andrew Rybchenko
@ 2020-09-11 10:57   ` Phil Yang
  2020-09-14  8:47     ` Thomas Monjalon
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Yang @ 2020-09-11 10:57 UTC (permalink / raw)
  To: Andrew Rybchenko, konstantin.ananyev, david.marchand, olivier.matz, dev
  Cc: Honnappa Nagarahalli, Ruifeng Wang, nd, nd

Andrew Rybchenko <arybchenko@solarflare.com> writes:

<snip>
> On 9/11/20 10:35 AM, Phil Yang wrote:
> > Remove the deprecated[1] refcnt_atomic member in structures rte_mbuf
> and
> > rte_mbuf_ext_shared_info.
> >
> > [1]
> http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecatio
> n.rst#L161
> 
> LGTM, please, cleanup deprecation notice in this patches when
> corresponding changes are done.

OK. Will do.

Thanks,
-Phil

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

* Re: [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed
  2020-09-11 10:57   ` Phil Yang
@ 2020-09-14  8:47     ` Thomas Monjalon
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Monjalon @ 2020-09-14  8:47 UTC (permalink / raw)
  To: Andrew Rybchenko, Phil Yang
  Cc: konstantin.ananyev, david.marchand, olivier.matz, dev,
	Honnappa Nagarahalli, Ruifeng Wang, nd

11/09/2020 12:57, Phil Yang:
> Andrew Rybchenko <arybchenko@solarflare.com> writes:
> 
> <snip>
> > On 9/11/20 10:35 AM, Phil Yang wrote:
> > > Remove the deprecated[1] refcnt_atomic member in structures rte_mbuf
> > and
> > > rte_mbuf_ext_shared_info.
> > >
> > > [1]
> > http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecatio
> > n.rst#L161
> > 
> > LGTM, please, cleanup deprecation notice in this patches when
> > corresponding changes are done.
> 
> OK. Will do.

I will do it while squashing and merging the patches.



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

* [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters
  2020-09-11  7:35 [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Phil Yang
                   ` (2 preceding siblings ...)
  2020-09-11  7:39 ` [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Andrew Rybchenko
@ 2020-09-14 12:25 ` Thomas Monjalon
  2020-09-14 12:35   ` Thomas Monjalon
  3 siblings, 1 reply; 9+ messages in thread
From: Thomas Monjalon @ 2020-09-14 12:25 UTC (permalink / raw)
  To: dev
  Cc: konstantin.ananyev, david.marchand, honnappa.nagarahalli, nd,
	Phil Yang, Ruifeng wang, Ray Kinsella, Neil Horman,
	John McNamara, Marko Kovacevic, Olivier Matz

From: Phil Yang <phil.yang@arm.com>

Remove the deprecated refcnt_atomic union fields in
rte_mbuf and rte_mbuf_ext_shared_info structures.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng wang <ruifeng.wang@arm.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
v2:
    - squashed
    - removed deprecation notice
    - updated release notes (in API section)
v3:
    - re-sent with --in-reply-to
    - added Andrew's ack
---
 doc/guides/rel_notes/deprecation.rst   |  8 +-------
 doc/guides/rel_notes/release_20_11.rst |  4 ++++
 lib/librte_mbuf/rte_mbuf_core.h        | 13 ++-----------
 3 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index 88d7d07613..52168f7751 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -148,13 +148,7 @@ Deprecation Notices
   avoiding impact on vectorized implementation of the driver datapaths,
   while evaluating performance gains of a better use of the first cache line.
 
-  The deprecated unioned fields ``buf_physaddr`` and ``refcnt_atomic``
-  (as explained below) will be removed in DPDK 20.11.
-
-* mbuf: ``refcnt_atomic`` member in structures ``rte_mbuf`` and
-  ``rte_mbuf_ext_shared_info`` is of type ``rte_atomic16_t``.
-  Due to adoption of C11 atomic builtins, the field ``refcnt_atomic``
-  will be replaced with ``refcnt`` of type ``uint16_t`` in DPDK 20.11.
+  The deprecated unioned field ``buf_physaddr`` will be removed in DPDK 20.11.
 
 * ethdev: Split the ``struct eth_dev_ops`` struct to hide it as much as possible
   will be done in 20.11.
diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst
index 667e3d54ad..b729bdf200 100644
--- a/doc/guides/rel_notes/release_20_11.rst
+++ b/doc/guides/rel_notes/release_20_11.rst
@@ -84,6 +84,10 @@ API Changes
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* mbuf: Removed the unioned field ``refcnt_atomic`` from
+  the structures ``rte_mbuf`` and ``rte_mbuf_ext_shared_info``.
+  The field ``refcnt`` is remaining from the old unions.
+
 * rawdev: Added a structure size parameter to the functions
   ``rte_rawdev_queue_setup()``, ``rte_rawdev_queue_conf_get()``,
   ``rte_rawdev_info_get()`` and ``rte_rawdev_configure()``,
diff --git a/lib/librte_mbuf/rte_mbuf_core.h b/lib/librte_mbuf/rte_mbuf_core.h
index 8cd7137ac5..cee3d5aff5 100644
--- a/lib/librte_mbuf/rte_mbuf_core.h
+++ b/lib/librte_mbuf/rte_mbuf_core.h
@@ -495,12 +495,7 @@ struct rte_mbuf {
 	 * or non-atomic) is controlled by the CONFIG_RTE_MBUF_REFCNT_ATOMIC
 	 * config option.
 	 */
-	RTE_STD_C11
-	union {
-		rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */
-		/** Non-atomically accessed refcnt */
-		uint16_t refcnt;
-	};
+	uint16_t refcnt;
 	uint16_t nb_segs;         /**< Number of segments. */
 
 	/** Input port (16 bits to support more than 256 virtual ports).
@@ -679,11 +674,7 @@ typedef void (*rte_mbuf_extbuf_free_callback_t)(void *addr, void *opaque);
 struct rte_mbuf_ext_shared_info {
 	rte_mbuf_extbuf_free_callback_t free_cb; /**< Free callback function */
 	void *fcb_opaque;                        /**< Free callback argument */
-	RTE_STD_C11
-	union {
-		rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */
-		uint16_t refcnt;
-	};
+	uint16_t refcnt;
 };
 
 /**< Maximum number of nb_segs allowed. */
-- 
2.28.0


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

* Re: [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters
  2020-09-14 12:25 ` [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters Thomas Monjalon
@ 2020-09-14 12:35   ` Thomas Monjalon
  2020-09-14 13:48     ` Phil Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Monjalon @ 2020-09-14 12:35 UTC (permalink / raw)
  To: Phil Yang, arybchenko
  Cc: dev, konstantin.ananyev, david.marchand, honnappa.nagarahalli,
	nd, Ruifeng wang, Ray Kinsella, Neil Horman, John McNamara,
	Marko Kovacevic, Olivier Matz

I wrote:
> From: Phil Yang <phil.yang@arm.com>
> 
> Remove the deprecated refcnt_atomic union fields in
> rte_mbuf and rte_mbuf_ext_shared_info structures.
> 
> Signed-off-by: Phil Yang <phil.yang@arm.com>
> Reviewed-by: Ruifeng wang <ruifeng.wang@arm.com>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
> 
> v2:
>     - squashed
>     - removed deprecation notice
>     - updated release notes (in API section)
> 
> v3:
>     - re-sent with --in-reply-to
>     - added Andrew's ack

The ack is missing above,
Anyway, applied with the ack :)



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

* Re: [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters
  2020-09-14 12:35   ` Thomas Monjalon
@ 2020-09-14 13:48     ` Phil Yang
  0 siblings, 0 replies; 9+ messages in thread
From: Phil Yang @ 2020-09-14 13:48 UTC (permalink / raw)
  To: thomas, arybchenko
  Cc: dev, konstantin.ananyev, david.marchand, Honnappa Nagarahalli,
	nd, Ruifeng Wang, Ray Kinsella, Neil Horman, John McNamara,
	Marko Kovacevic, Olivier Matz, nd

Thomas Monjalon <thomas@monjalon.net> writes:

> >
> > Remove the deprecated refcnt_atomic union fields in
> > rte_mbuf and rte_mbuf_ext_shared_info structures.
> >
> > Signed-off-by: Phil Yang <phil.yang@arm.com>
> > Reviewed-by: Ruifeng wang <ruifeng.wang@arm.com>
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> > ---
> >
> > v2:
> >     - squashed
> >     - removed deprecation notice
> >     - updated release notes (in API section)
> >
> > v3:
> >     - re-sent with --in-reply-to
> >     - added Andrew's ack
> 
> The ack is missing above,
> Anyway, applied with the ack :)

Thank you. 😊

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

end of thread, other threads:[~2020-09-14 13:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11  7:35 [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Phil Yang
2020-09-11  7:35 ` [dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt Phil Yang
2020-09-11  7:35 ` [dpdk-dev] [PATCH 2/2] mbuf: remove external buffer " Phil Yang
2020-09-11  7:39 ` [dpdk-dev] [PATCH 0/2] remove mbuf deprecated filed Andrew Rybchenko
2020-09-11 10:57   ` Phil Yang
2020-09-14  8:47     ` Thomas Monjalon
2020-09-14 12:25 ` [dpdk-dev] [PATCH v3] mbuf: remove atomic reference counters Thomas Monjalon
2020-09-14 12:35   ` Thomas Monjalon
2020-09-14 13:48     ` Phil Yang

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