DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC] ethdev: mark old ETH_LINK macros as deprecated
@ 2021-10-29 21:47 Stephen Hemminger
  2021-11-01 12:30 ` Ferruh Yigit
  2021-11-02 23:44 ` [dpdk-dev] [PATCH] ethdev: mark old " Ferruh Yigit
  0 siblings, 2 replies; 21+ messages in thread
From: Stephen Hemminger @ 2021-10-29 21:47 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Stephen Hemminger

The new definitions should be favored and used by all new code.

Fixes: 295968d17407 ("ethdev: add namespace")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/ethdev/rte_ethdev.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
index 24f30b4b2890..9709a944b752 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -367,17 +367,17 @@ struct rte_eth_link {
  * Constants used in link management.
  */
 #define RTE_ETH_LINK_HALF_DUPLEX 0 /**< Half-duplex connection (see link_duplex). */
-#define ETH_LINK_HALF_DUPLEX     RTE_ETH_LINK_HALF_DUPLEX
+#define ETH_LINK_HALF_DUPLEX     RTE_DEPRECATED(RTE_ETH_LINK_HALF_DUPLEX)
 #define RTE_ETH_LINK_FULL_DUPLEX 1 /**< Full-duplex connection (see link_duplex). */
-#define ETH_LINK_FULL_DUPLEX     RTE_ETH_LINK_FULL_DUPLEX
+#define ETH_LINK_FULL_DUPLEX     RTE_DEPRECATED(RTE_ETH_LINK_FULL_DUPLEX)
 #define RTE_ETH_LINK_DOWN        0 /**< Link is down (see link_status). */
-#define ETH_LINK_DOWN            RTE_ETH_LINK_DOWN
+#define ETH_LINK_DOWN            RTE_DEPRECATED(RTE_ETH_LINK_DOWN)
 #define RTE_ETH_LINK_UP          1 /**< Link is up (see link_status). */
-#define ETH_LINK_UP              RTE_ETH_LINK_UP
+#define ETH_LINK_UP              RTE_DEPRECATED(RTE_ETH_LINK_UP)
 #define RTE_ETH_LINK_FIXED       0 /**< No autonegotiation (see link_autoneg). */
-#define ETH_LINK_FIXED           RTE_ETH_LINK_FIXED
+#define ETH_LINK_FIXED           RTE_DEPRECATED(RTE_ETH_LINK_FIXED)
 #define RTE_ETH_LINK_AUTONEG     1 /**< Autonegotiated (see link_autoneg). */
-#define ETH_LINK_AUTONEG         RTE_ETH_LINK_AUTONEG
+#define ETH_LINK_AUTONEG         RTE_DEPRECATED(RTE_ETH_LINK_AUTONEG)
 #define RTE_ETH_LINK_MAX_STR_LEN 40 /**< Max length of default link string. */
 /**@}*/
 
-- 
2.30.2


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

end of thread, other threads:[~2022-01-14  9:02 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 21:47 [dpdk-dev] [RFC] ethdev: mark old ETH_LINK macros as deprecated Stephen Hemminger
2021-11-01 12:30 ` Ferruh Yigit
2021-11-02 23:44 ` [dpdk-dev] [PATCH] ethdev: mark old " Ferruh Yigit
2021-11-03  0:05   ` Stephen Hemminger
2021-11-03  9:00     ` Ferruh Yigit
2021-11-03 22:48   ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2021-11-04 11:03     ` Ferruh Yigit
2021-11-04 12:59       ` Thomas Monjalon
2021-11-05 13:40         ` Andrew Rybchenko
2021-11-05 15:05           ` Thomas Monjalon
2021-11-05 16:26             ` Stephen Hemminger
2021-11-05 21:33               ` Ferruh Yigit
2021-11-06  7:46                 ` Thomas Monjalon
2022-01-12 14:36     ` [PATCH v3] " Ferruh Yigit
2022-01-14  6:45       ` Xia, Chenbo
2022-01-14  9:01         ` Ferruh Yigit
2021-11-04 11:04   ` [dpdk-dev] [PATCH] ethdev: fix crash on owner delete Ferruh Yigit
2021-11-05  3:03     ` [dpdk-dev] [dpdk-stable] " Xia, Chenbo
2021-11-05 13:16       ` Thomas Monjalon
2021-11-05 13:36         ` Andrew Rybchenko
2021-11-05 14:36           ` Ferruh Yigit

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