ethdev: deprecate DEFERRED device state
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
@@ -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
Quoted 19 lines · Ferruh Yigit
Add a deprecation notice to remove
RTE_ETH_DEV_DEFERREDstate, 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.Signed-off-by Ferruh Yigit <[email protected]>---
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
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.
Quoted 21 lines · Andrew Rybchenko
Quoted 20 lines · Ferruh Yigit
Add a deprecation notice to remove
RTE_ETH_DEV_DEFERREDstate, 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.Signed-off-by Ferruh Yigit <[email protected]>---
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@@ -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
-0This 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.Acked-by Andrew Rybchenko <[email protected]>
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.
PATCH 1/1 ethdev: remove unused DEFERRED device state
In reply to Ferruh YigitDEFERRED 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
@@ -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
Re: [PATCH] ethdev: remove unused DEFERRED device state
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.
Signed-off-by Ferruh Yigit <[email protected]>
Ferruh Yigit
AppliedRe: [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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Matan Azrad <[email protected]>
Applied to dpdk-next-net/master, thanks.