From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D49F3A0C41; Fri, 29 Oct 2021 23:47:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 993BC40688; Fri, 29 Oct 2021 23:47:53 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 13BB840395 for ; Fri, 29 Oct 2021 23:47:51 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id t11so7639510plq.11 for ; Fri, 29 Oct 2021 14:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Rn5L/yv53cuQB1zGrzGRx9l/19ZrdVju8lrOudVLkZE=; b=e3k+n1ZaIW0fEQxa6shWk5ntUr045RuYepKX1ZSRb5YSukemJI4649m5VRl86AjFB1 WnfZmrtsC6YdnfHG3PxfIo8uJXaYx969NxP15JmGRP9KdsoGa0MH2h3NI62ccc9kWxQr MsBTGVC0mWUzqtgRFNpM4y/6jJAgtcGz/b2gnJsD1+saIvlw0PEuPZ2hOCCgV5zwDSO5 Y9czAAZm/DmfsF7cYgU1psY+98R3F6B4Xlfe4GVUIqm0D4YHrqRuTDMQfXSQPiD/aRmM x/lmwM/c+LEgk12SasD8vkJZXa/HcQz94oFHm2qHTvKAAJCBT6mJRx0b8oL+N2emQ+UL dI3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Rn5L/yv53cuQB1zGrzGRx9l/19ZrdVju8lrOudVLkZE=; b=SLfotfxo6RuaS1/RZaCyS/L1saxP8lfGz3ES0CdqhXFqSI/RKOSc7Gpu/Q5l7ZlWjP 5epMSJoLp3FtSFanAAdx2qQxCHW91x/bA2dWn263bmUf5JHlVCVoIJSr3HkstmCqkz/r XEcywMYtM4DW/En37kvJcJdoCboUUHY1z1cKq59FkcrioRxDObYPM0EhHr1QReE0BlGk zfFlMdNqW0wQ3Te1+gkLmTPE2y9GhZAUcvVhx2jaU1tYDZfoiJvaH3xsLHoUw+5uA2ix s69FHgfDG5AucCYdwtroEej/pPQRhW0uucryBPYjmz2Q7igIE/ABeviHejGL1jEK5dTy oJjQ== X-Gm-Message-State: AOAM531yyNehK/r4guW+fBELNBIj0LG1C8zMLu9gel2hEjM0sL1Cthsw Kqasljcawnun91x0MdJ0KgBHbg== X-Google-Smtp-Source: ABdhPJzFk/3r7xNGBV1FuskAurdYEEUbOjiHrSQko/AtIk2S/0l7nyhdZmiH42AVgk+aZFB0v8rFuw== X-Received: by 2002:a17:903:3049:b0:141:654a:2436 with SMTP id u9-20020a170903304900b00141654a2436mr12171009pla.16.1635544071080; Fri, 29 Oct 2021 14:47:51 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id g4sm5760657pfv.195.2021.10.29.14.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 14:47:50 -0700 (PDT) From: Stephen Hemminger To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Stephen Hemminger Date: Fri, 29 Oct 2021 14:47:39 -0700 Message-Id: <20211029214739.72707-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC] ethdev: mark old ETH_LINK macros as deprecated X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The new definitions should be favored and used by all new code. Fixes: 295968d17407 ("ethdev: add namespace") Signed-off-by: Stephen Hemminger --- 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