Skip to contentSkip to conversation

doc: announce removal of old port count function

PATCH Superseded Thomas Monjalon 4 participants 7 messages Jun 3, 2019 – Aug 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: announce removal of old port count function

The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It is planned to be removed after the next LTS release.

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index e2721fad6..8d4d89a85 100644
@@ -37,6 +37,11 @@ Deprecation Notices
 
     + ``rte_eal_devargs_type_count``
 
+* ethdev: The function ``rte_eth_dev_count`` will be removed in DPDK 20.02.
+  It is replaced by the function ``rte_eth_dev_count_avail``.
+  If the intent is to iterate over ports, ``RTE_ETH_FOREACH_*`` macros
+  are better port iterators.
+
 * vfio: removal of ``rte_vfio_dma_map`` and ``rte_vfio_dma_unmap`` APIs which
   have been replaced with ``rte_dev_dma_map`` and ``rte_dev_dma_unmap``
   functions.  The due date for the removal targets DPDK 20.02.
Signature · 1 line
2.21.0
Acked-by on v1 1/1
#1 lore raw
Quoted 25 lines · Thomas Monjalon

The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It is planned to be removed after the next LTS release.

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +1 -0
index e2721fad6..8d4d89a85 100644
@@ -37,6 +37,11 @@ Deprecation Notices
 
     + ``rte_eal_devargs_type_count``
 
+* ethdev: The function ``rte_eth_dev_count`` will be removed in DPDK

20.02.

doc/guides/rel_notes/deprecation.rst +4 -0
+  It is replaced by the function ``rte_eth_dev_count_avail``.
+  If the intent is to iterate over ports, ``RTE_ETH_FOREACH_*`` macros
+  are better port iterators.
+
 * vfio: removal of ``rte_vfio_dma_map`` and ``rte_vfio_dma_unmap`` APIs
Quoted 6 lines

which
have been replaced with ``rte_dev_dma_map`` and ``rte_dev_dma_unmap`` functions. The due date for the removal targets DPDK 20.02.
--
2.21.0

Out of curiosity (ok, not entirely, since I need to write some notices). Is there a rule for the order in which those entries are written? I can see a notice about ethdev later in the file.

Signature · 1 line
David Marchand
#2 lore raw

04/06/2019 09:12, David Marchand:

Quoted 7 lines · Thomas Monjalon
Quoted 6 lines
doc/guides/rel_notes/deprecation.rst +0 -0
@@ -37,6 +37,11 @@ Deprecation Notices
 
     + ``rte_eal_devargs_type_count``
 
Quoted 13 lines
Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +1 -0
+* ethdev: The function ``rte_eth_dev_count`` will be removed in DPDK

20.02.

doc/guides/rel_notes/deprecation.rst +4 -0
+  It is replaced by the function ``rte_eth_dev_count_avail``.
+  If the intent is to iterate over ports, ``RTE_ETH_FOREACH_*`` macros
+  are better port iterators.
+
 * vfio: removal of ``rte_vfio_dma_map`` and ``rte_vfio_dma_unmap`` APIs

which
have been replaced with ``rte_dev_dma_map`` and ``rte_dev_dma_unmap`` functions. The due date for the removal targets DPDK 20.02.

Out of curiosity (ok, not entirely, since I need to write some notices). Is there a rule for the order in which those entries are written?

Yes the order should be the same as for the features in the release notes.

Quoted 1 line

I can see a notice about ethdev later in the file.

Indeed, ethdev is supposed to be after EAL,
it is my mistake.

Quoted 1 line
#3 lore raw

PATCH v2 1/1 doc: announce removal of old port count function

In reply to Thomas Monjalon

The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It is planned to be removed after the next LTS release.

---
v2: move notice near other ethdev one

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index 37b8592b6..3f0fb3ab6 100644
@@ -51,6 +51,11 @@ Deprecation Notices
   structure would be made internal (or removed if all dependencies are cleared)
   in future releases.
 
+* ethdev: The function ``rte_eth_dev_count`` will be removed in DPDK 20.02.
+  It is replaced by the function ``rte_eth_dev_count_avail``.
+  If the intent is to iterate over ports, ``RTE_ETH_FOREACH_*`` macros
+  are better port iterators.
+
 * ethdev: the legacy filter API, including
   ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
   as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
Signature · 1 line
2.21.0
Acked-by on v2 1/1
#4 lore raw
Quoted 28 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, August 6, 2019 2:32 PM
To: [email protected]
Cc: David Marchand <[email protected]>
Subject: [dpdk-dev] [PATCH v2] doc: announce removal of old port count function

The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It is planned to be removed after the next LTS release.

---
v2: move notice near other ethdev one

---
 doc/guides/rel_notes/deprecation.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 37b8592b6..3f0fb3ab6 100644
@@ -51,6 +51,11 @@ Deprecation Notices
   structure would be made internal (or removed if all dependencies are cleared)
   in future releases.

doc/guides/rel_notes/deprecation.rst Deprecation Notices

Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +5 -1
 
+* ethdev: The function ``rte_eth_dev_count`` will be removed in DPDK 20.02.
+  It is replaced by the function ``rte_eth_dev_count_avail``.
+  If the intent is to iterate over ports, ``RTE_ETH_FOREACH_*`` macros
+  are better port iterators.
+
 * ethdev: the legacy filter API, including
   ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
   as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
--
Quoted 1 line

2.21.0

#5 lore raw
Quoted 27 lines · Konstantin
Quoted 27 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, August 6, 2019 2:32 PM
To: [email protected]
Cc: David Marchand <[email protected]>
Subject: [dpdk-dev] [PATCH v2] doc: announce removal of old port count function

The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It is planned to be removed after the next LTS release.

---
v2: move notice near other ethdev one

---
  doc/guides/rel_notes/deprecation.rst | 5 +++++
  1 file changed, 5 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 37b8592b6..3f0fb3ab6 100644
@@ -51,6 +51,11 @@ Deprecation Notices
    structure would be made internal (or removed if all dependencies are cleared)
    in future releases.
 
Quoted 11 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices

Quoted 9 lines
doc/guides/rel_notes/deprecation.rst +5 -1
+* ethdev: The function ``rte_eth_dev_count`` will be removed in DPDK 20.02.
+  It is replaced by the function ``rte_eth_dev_count_avail``.
+  If the intent is to iterate over ports, ``RTE_ETH_FOREACH_*`` macros
+  are better port iterators.
+
  * ethdev: the legacy filter API, including
    ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
    as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
--
author Applied
#6 lore raw
Quoted 9 lines
Quoted 7 lines
Quoted 6 lines

The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It is planned to be removed after the next LTS release.

Applied