From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: [PATCH 03/13] devargs: deprecate enum rte_devtype based functions Date: Tue, 11 Jul 2017 19:25:02 -0400 Message-ID: <20170711232512.54641-4-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> To: dev@dpdk.org Return-path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id E54B8377E for ; Wed, 12 Jul 2017 01:25:36 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id x23so1757483wrb.0 for ; Tue, 11 Jul 2017 16:25:36 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id k45sm311516ede.16.2017.07.11.16.25.35 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 11 Jul 2017 16:25:35 -0700 (PDT) In-Reply-To: <20170711232512.54641-1-jblunck@infradead.org> 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 enum rte_devtype will need to get extended every time we add a bus. Mark all related functions as deprecated for 17.11. Signed-off-by: Jan Blunck --- doc/guides/rel_notes/deprecation.rst | 7 +++++++ lib/librte_eal/common/include/rte_devargs.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 257dcba32..0c763d522 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -64,3 +64,10 @@ Deprecation Notices be removed in 17.11: - ``rte_eal_parse_devargs_str``, replaced by ``rte_eal_devargs_parse`` + +* devargs: An API/ABI change is planed for 17.11 for ``struct rte_devargs`` to + remove ``enum rte_devtype`` so that starting from 17.08 the following + functions are deprecated: + + - ``rte_eal_devargs_add`` + - ``rte_eal_devargs_type_count`` diff --git a/lib/librte_eal/common/include/rte_devargs.h b/lib/librte_eal/common/include/rte_devargs.h index 62dd67bff..41db817cc 100644 --- a/lib/librte_eal/common/include/rte_devargs.h +++ b/lib/librte_eal/common/include/rte_devargs.h @@ -53,6 +53,7 @@ extern "C" { #include /** + * @deprecated * Type of generic device */ enum rte_devtype { @@ -139,6 +140,7 @@ rte_eal_devargs_parse(const char *dev, struct rte_devargs *da); /** + * @deprecated * Add a device to the user device list * * For PCI devices, the format of arguments string is "PCI_ADDR" or @@ -163,6 +165,7 @@ rte_eal_devargs_parse(const char *dev, int rte_eal_devargs_add(enum rte_devtype devtype, const char *devargs_str); /** + * @deprecated * Count the number of user devices of a specified type * * @param devtype -- 2.13.2