Skip to contentSkip to conversation

ethdev: deprecate DEFERRED device state

PATCH In review Ferruh Yigit 3 participants 6 messages Aug 24, 2018 – Nov 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethdev: deprecate DEFERRED device state

Add a deprecation notice to remove RTE_ETH_DEV_DEFERRED state, but this is mostly a reminder because of a missing target.
It doesn't worth to break the ABI because of this change and removal can be done when ethdev ABI version increased.

---
Cc: Thomas Monjalon <[email protected]>
Cc: Andrew Rybchenko <[email protected]>
Cc: Matan Azrad <[email protected]>

---
 doc/guides/rel_notes/deprecation.rst | 4 ++++
 1 file changed, 4 insertions(+)
doc/guides/rel_notes/deprecation.rst +4 -0
index e2dbee317..9cd12ccd8 100644
@@ -95,3 +95,7 @@ Deprecation Notices
 
   This is due to a lack of flexibility and reliance on a type unusable with
   C++ programs (struct rte_flow_desc).
+
+* ethdev: remove deprecated RTE_ETH_DEV_DEFERRED device state.
+  Since this is an enum filed in the middle, removing this field will break
+  the ABI, so removing postponed to next ethdev ABI version increase.
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Ferruh Yigit

Add a deprecation notice to remove RTE_ETH_DEV_DEFERRED state, but this is mostly a reminder because of a missing target.
It doesn't worth to break the ABI because of this change and removal can be done when ethdev ABI version increased.

---
Cc: Thomas Monjalon <[email protected]>
Cc: Andrew Rybchenko <[email protected]>
Cc: Matan Azrad <[email protected]>

---
  doc/guides/rel_notes/deprecation.rst | 4 ++++
  1 file changed, 4 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index e2dbee317..9cd12ccd8 100644

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 101

Quoted 7 lines
doc/guides/rel_notes/deprecation.rst +4 -0
@@ -95,3 +95,7 @@ Deprecation Notices
 
    This is due to a lack of flexibility and reliance on a type unusable with
    C++ programs (struct rte_flow_desc).
+
+* ethdev: remove deprecated RTE_ETH_DEV_DEFERRED device state.
+  Since this is an enum filed in the middle, removing this field will break
+  the ABI, so removing postponed to next ethdev ABI version increase.
#2 lore raw
Quoted 21 lines · Andrew Rybchenko
Quoted 20 lines · Ferruh Yigit

Add a deprecation notice to remove RTE_ETH_DEV_DEFERRED state, but this is mostly a reminder because of a missing target.
It doesn't worth to break the ABI because of this change and removal can be done when ethdev ABI version increased.

---
Cc: Thomas Monjalon <[email protected]>
Cc: Andrew Rybchenko <[email protected]>
Cc: Matan Azrad <[email protected]>

---
  doc/guides/rel_notes/deprecation.rst | 4 ++++
  1 file changed, 4 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index e2dbee317..9cd12ccd8 100644
@@ -95,3 +95,7 @@ Deprecation Notices
 
Quoted 9 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 101

Quoted 6 lines
doc/guides/rel_notes/deprecation.rst +4 -0
    This is due to a lack of flexibility and reliance on a type unusable with
    C++ programs (struct rte_flow_desc).
+
+* ethdev: remove deprecated RTE_ETH_DEV_DEFERRED device state.
+  Since this is an enum filed in the middle, removing this field will break
+  the ABI, so removing postponed to next ethdev ABI version increase.

In this release we already break the ABI for ethdev, instead of putting this deprecation notice in, I will send a patch to remove RTE_ETH_DEV_DEFERRED, since it is not used in current code, it should be trivial and safe change.

#3 lore raw

PATCH 1/1 ethdev: remove unused DEFERRED device state

In reply to Ferruh Yigit

DEFERRED state replaced by ownership concept and it is no more used as code comment states.

ethdev ABI broken on this release use this opportunity to remove DEFERRED state.

---
Cc: Matan Azrad <[email protected]>

---
 lib/librte_ethdev/rte_ethdev.h | 2 --
 1 file changed, 2 deletions(-)
lib/librte_ethdev/rte_ethdev.h +0 -2
index 8a92d91e3..1960f3a2d 100644
@@ -1306,8 +1306,6 @@ enum rte_eth_dev_state {
 	RTE_ETH_DEV_UNUSED = 0,
 	/** Device is attached when allocated in probing. */
 	RTE_ETH_DEV_ATTACHED,
-	/** The deferred state is useless and replaced by ownership. */
-	RTE_ETH_DEV_DEFERRED,
 	/** Device is in removed state when plug-out is detected. */
 	RTE_ETH_DEV_REMOVED,
 };
Signature · 1 line
2.17.2
author Applied
#5 lore raw

Re: [PATCH] ethdev: remove unused DEFERRED device state

Quoted 11 lines · Matan Azrad

From: Ferruh Yigit

Quoted 7 lines

DEFERRED state replaced by ownership concept and it is no more used as code comment states.

ethdev ABI broken on this release use this opportunity to remove DEFERRED state.

Applied to dpdk-next-net/master, thanks.