Skip to contentSkip to conversation

doc: announce ethdev port freeing on close operation

PATCH In review Thomas Monjalon 5 participants 6 messages Aug 4, 2020 – Aug 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: announce ethdev port freeing on close operation

Since DPDK 18.11, some drivers are migrating to a new behaviour, releasing port resources on close.
The temporary flag RTE_ETH_DEV_CLOSE_REMOVE triggers this new mode in the migrated drivers.
After 2 years, the flag and the old behaviour will be removed. Last drivers not migrated will have to complete the switch.

---
 doc/guides/rel_notes/deprecation.rst | 6 ++++++
 1 file changed, 6 insertions(+)
doc/guides/rel_notes/deprecation.rst +6 -0
index ea4cfa7a48..b5e8045d00 100644
@@ -91,6 +91,12 @@ Deprecation Notices
   - ``rte_eth_dev_stop``
   - ``rte_eth_dev_close``
 
+* ethdev: The temporary flag RTE_ETH_DEV_CLOSE_REMOVE will be removed in 20.11.
+  As a consequence, the new behaviour introduced in 18.11 will be effective
+  for all drivers: generic port resources are freed on close operation.
+  Private resources are expected to be released in the ``dev_close`` callback.
+  More details in http://inbox.dpdk.org/dev/5248162.j6AOsuQRmx@thomas/
+
 * ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
   This will allow application to enable or disable PMDs from updating
   ``rte_mbuf::hash::fdir``.
Signature · 1 line
2.27.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Thomas Monjalon

Since DPDK 18.11, some drivers are migrating to a new behaviour, releasing port resources on close.
The temporary flag RTE_ETH_DEV_CLOSE_REMOVE triggers this new mode in the migrated drivers.
After 2 years, the flag and the old behaviour will be removed. Last drivers not migrated will have to complete the switch.

Quoted 24 lines
---
 doc/guides/rel_notes/deprecation.rst | 6 ++++++
 1 file changed, 6 insertions(+)
doc/guides/rel_notes/deprecation.rst +6 -1
index ea4cfa7a48..b5e8045d00 100644
@@ -91,6 +91,12 @@ Deprecation Notices
   - ``rte_eth_dev_stop``
   - ``rte_eth_dev_close``
 
+* ethdev: The temporary flag RTE_ETH_DEV_CLOSE_REMOVE will be removed in 20.11.
+  As a consequence, the new behaviour introduced in 18.11 will be effective
+  for all drivers: generic port resources are freed on close operation.
+  Private resources are expected to be released in the ``dev_close`` callback.
+  More details in http://inbox.dpdk.org/dev/5248162.j6AOsuQRmx@thomas/
+
 * ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
   This will allow application to enable or disable PMDs from updating
   ``rte_mbuf::hash::fdir``.
--

2.27.0

#2 lore raw
Quoted 13 lines
Quoted 4 lines · Thomas Monjalon

Since DPDK 18.11, some drivers are migrating to a new behaviour, releasing port resources on close.
The temporary flag RTE_ETH_DEV_CLOSE_REMOVE triggers this new mode

in

Quoted 5 lines

the migrated drivers.
After 2 years, the flag and the old behaviour will be removed. Last drivers not migrated will have to complete the switch.

Acked-by
#3 lore raw
Quoted 6 lines · Hemant Agrawal
Quoted 6 lines
Quoted 4 lines · Thomas Monjalon

Since DPDK 18.11, some drivers are migrating to a new behaviour, releasing port resources on close.
The temporary flag RTE_ETH_DEV_CLOSE_REMOVE triggers this new mode

Quoted 9 lines
Quoted 7 lines

in

Quoted 5 lines

the migrated drivers.
After 2 years, the flag and the old behaviour will be removed. Last drivers not migrated will have to complete the switch.

#4 lore raw
Quoted 14 lines · Ajit Khaparde
Quoted 11 lines · Hemant Agrawal
Quoted 11 lines
Quoted 4 lines · Thomas Monjalon

Since DPDK 18.11, some drivers are migrating to a new behaviour, releasing port resources on close.
The temporary flag RTE_ETH_DEV_CLOSE_REMOVE triggers this new mode

in

Quoted 4 lines

the migrated drivers.
After 2 years, the flag and the old behaviour will be removed. Last drivers not migrated will have to complete the switch.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
author Acked-by Jerin Jacob Applied
#5 lore raw

05/08/2020 12:33, Andrew Rybchenko:

Quoted 10 lines · Ajit Khaparde
Quoted 9 lines
Quoted 6 lines · Hemant Agrawal
Quoted 6 lines
Quoted 4 lines · Thomas Monjalon

Since DPDK 18.11, some drivers are migrating to a new behaviour, releasing port resources on close.
The temporary flag RTE_ETH_DEV_CLOSE_REMOVE triggers this new mode

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

in

Quoted 5 lines

the migrated drivers.
After 2 years, the flag and the old behaviour will be removed. Last drivers not migrated will have to complete the switch.

Quoted 3 lines
Quoted 2 lines
Quoted 1 line

Applied