DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
	David Marchand <david.marchand@redhat.com>,
	Thomas Monjalon <thomas@monjalon.net>,
	"Andrew Rybchenko" <andrew.rybchenko@oktetlabs.ru>
Cc: <dev@dpdk.org>, Olivier Matz <olivier.matz@6wind.com>
Subject: Re: [dpdk-dev] [RFC] ethdev: mark old ETH_LINK macros as deprecated
Date: Mon, 1 Nov 2021 12:30:24 +0000	[thread overview]
Message-ID: <03f423cd-81d0-f25e-6488-36a73909f0d4@intel.com> (raw)
In-Reply-To: <20211029214739.72707-1-stephen@networkplumber.org>

On 10/29/2021 10:47 PM, Stephen Hemminger wrote:
> 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. */
>   /**@}*/
>   
> 

This definitely prevents using old macros, btw there are bunch of them renamed
in this release.

My concern is if it cause too much noise, if we are OK with that I can send a
patch that covers all renamed macros.

  reply	other threads:[~2021-11-01 12:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 21:47 Stephen Hemminger
2021-11-01 12:30 ` Ferruh Yigit [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=03f423cd-81d0-f25e-6488-36a73909f0d4@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=olivier.matz@6wind.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).