All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ruifeng Wang <Ruifeng.Wang@arm.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: nd <nd@arm.com>
Subject: Re: [dpdk-dev] [PATCH] eal: remove the deprecated whitelist/blacklist and master/slave API's
Date: Mon, 23 Aug 2021 02:45:00 +0000	[thread overview]
Message-ID: <AM5PR0802MB24656C7E760E452570DD2F579EC49@AM5PR0802MB2465.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <20210820031614.451034-1-stephen@networkplumber.org>

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Stephen Hemminger
> Sent: Friday, August 20, 2021 11:16 AM
> To: dev@dpdk.org
> Cc: Stephen Hemminger <stephen@networkplumber.org>
> Subject: [dpdk-dev] [PATCH] eal: remove the deprecated whitelist/blacklist
> and master/slave API's
> 
> Remove the compatiability hooks that were added in 20.11 around
> master/slave and blacklist/whitelist.
> 
> New API's for these were added in 20.11 and the old API was retained but
> marked deprecated. Since 21.11 is the next LTS, it is time to remove the
> deprecated ones.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  doc/guides/rel_notes/release_21_11.rst |  7 +++++++
>  lib/eal/common/eal_common_options.c    | 14 --------------
>  lib/eal/common/eal_options.h           | 10 ----------
>  lib/eal/include/rte_bus.h              |  6 ------
>  lib/eal/include/rte_dev.h              |  6 ------
>  lib/eal/include/rte_devargs.h          |  6 ------
>  lib/eal/include/rte_launch.h           |  4 ----
>  lib/eal/include/rte_lcore.h            | 15 ---------------
>  8 files changed, 7 insertions(+), 61 deletions(-)
> 
> diff --git a/doc/guides/rel_notes/release_21_11.rst
> b/doc/guides/rel_notes/release_21_11.rst
> index d707a554efaf..e34c5aa74ad0 100644
> --- a/doc/guides/rel_notes/release_21_11.rst
> +++ b/doc/guides/rel_notes/release_21_11.rst
> @@ -68,6 +68,13 @@ Removed Items
>     Also, make sure to start the actual text at the margin.
>     =======================================================
> 
> +* eal: Removed the deprecated function ``rte_get_master_lcore()``
> +  and the iterarator macro ``RTE_LCORE_FOREACH_SLAVE``.
> +
> +* eal: The old api arguments that were deprecated for
> +  blacklist/whitelist are removed. Users must use the new
> +  block/allow list arguments.
> +
> 
>  API Changes
>  -----------
> diff --git a/lib/eal/common/eal_common_options.c
> b/lib/eal/common/eal_common_options.c
> index ff5861b5f3ef..8853833b108a 100644
> --- a/lib/eal/common/eal_common_options.c
> +++ b/lib/eal/common/eal_common_options.c

"w" can be removed from eal_short_options.

> @@ -83,7 +83,6 @@ eal_long_options[] = {
>  	{OPT_TRACE_DIR,         1, NULL, OPT_TRACE_DIR_NUM        },
>  	{OPT_TRACE_BUF_SIZE,    1, NULL, OPT_TRACE_BUF_SIZE_NUM   },
>  	{OPT_TRACE_MODE,        1, NULL, OPT_TRACE_MODE_NUM       },
> -	{OPT_MASTER_LCORE,      1, NULL, OPT_MASTER_LCORE_NUM     },
>  	{OPT_MAIN_LCORE,        1, NULL, OPT_MAIN_LCORE_NUM       },
>  	{OPT_MBUF_POOL_OPS_NAME, 1, NULL,
> OPT_MBUF_POOL_OPS_NAME_NUM},
>  	{OPT_NO_HPET,           0, NULL, OPT_NO_HPET_NUM          },
> @@ -108,10 +107,6 @@ eal_long_options[] = {
>  	{OPT_NO_TELEMETRY,      0, NULL, OPT_NO_TELEMETRY_NUM     },
>  	{OPT_FORCE_MAX_SIMD_BITWIDTH, 1, NULL,
> OPT_FORCE_MAX_SIMD_BITWIDTH_NUM},
> 
> -	/* legacy options that will be removed in future */
> -	{OPT_PCI_BLACKLIST,     1, NULL, OPT_PCI_BLACKLIST_NUM    },
> -	{OPT_PCI_WHITELIST,     1, NULL, OPT_PCI_WHITELIST_NUM    },
> -
>  	{0,                     0, NULL, 0                        }
>  };
> 
> @@ -1521,10 +1516,6 @@ eal_parse_common_option(int opt, const char
> *optarg,
>  	static int a_used;
> 
>  	switch (opt) {
> -	case OPT_PCI_BLACKLIST_NUM:
> -		fprintf(stderr,
> -			"Option --pci-blacklist is deprecated, use -b, --block
> instead\n");
> -		/* fallthrough */
>  	case 'b':
>  		if (a_used)
>  			goto ba_conflict;

case 'w' can be removed as well.

> @@ -1698,11 +1689,6 @@ eal_parse_common_option(int opt, const char
> *optarg,
>  		conf->process_type = eal_parse_proc_type(optarg);
>  		break;
> 
> -	case OPT_MASTER_LCORE_NUM:
> -		fprintf(stderr,
> -			"Option --" OPT_MASTER_LCORE
> -			" is deprecated use " OPT_MAIN_LCORE "\n");
> -		/* fallthrough */
>  	case OPT_MAIN_LCORE_NUM:
>  		if (eal_parse_main_lcore(optarg) < 0) {
>  			RTE_LOG(ERR, EAL, "invalid parameter for --"
<snip>

  reply	other threads:[~2021-08-23  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-20  3:16 [dpdk-dev] [PATCH] eal: remove the deprecated whitelist/blacklist and master/slave API's Stephen Hemminger
2021-08-23  2:45 ` Ruifeng Wang [this message]
2021-08-23 15:06 ` [dpdk-dev] [PATCH v2] " Stephen Hemminger
2021-08-24  7:31   ` Ruifeng Wang
2021-09-16 15:25   ` David Marchand

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=AM5PR0802MB24656C7E760E452570DD2F579EC49@AM5PR0802MB2465.eurprd08.prod.outlook.com \
    --to=ruifeng.wang@arm.com \
    --cc=dev@dpdk.org \
    --cc=nd@arm.com \
    --cc=stephen@networkplumber.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.