From patchwork Thu Jul 30 00:57:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 75016 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F171EA052B; Thu, 30 Jul 2020 02:58:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 181D51BFFE; Thu, 30 Jul 2020 02:58:19 +0200 (CEST) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by dpdk.org (Postfix) with ESMTP id 09FB74C93 for ; Thu, 30 Jul 2020 02:58:16 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id c10so1149232pjn.1 for ; Wed, 29 Jul 2020 17:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bRVyK9zJ3O7EYwRulhRR5sx11SmHsQ2viZX5yVBobuQ=; b=LF224QnSJ6SJTE2tG5c8gr7JqepVmkwQNFwh1eOtJ9PPgaTl0sNnSEreFjRtC93Eox I4hOqMPqlNaCXcwyjr/hr/JroZNzQ/BQHzxxPgQkEiqNBnqc7IgZPamwawTIGYWc5Lt/ a4lZbjFpEd7osdTdKX1AJ6Tmes/X89Wn1QSqB8lhD51DkUzrdGbTfKWrSw26jTV1LroX vNEKLxf8iyHCBRjaNq1H+D60jbjIiFqzejauFAZSmJY50TS2GlWXayUnLe3NnCpQuQLR cNhKdAEQl/EAKUPumeKAwXMvjvPj2LmkwYzk2ZeyFQqwn9C0nGtciAeUX98Eg/PAsU07 4AHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bRVyK9zJ3O7EYwRulhRR5sx11SmHsQ2viZX5yVBobuQ=; b=irgMH+KCTmvAdPOjWfpEqsUEAqkMnTotBIxyqHNB+eX4TW+fodnf7mIPZZXUz39A0Q X9Rsp0nH1QZfi9YcCW74zFaiQ9Uq6wGE/o7mmXrpTan9L9p9owEdKCW7oDTFS5T2Mluv muRwndkhN0x0NkoANMhQedxUcxgELxA6CeCy6+1EkkygeLHjLcRppVg4Y7dQHiWrc5Ur /rxCUSF8OX+0ZepVUN9feWrszp9qXyuVXJeBX4DBG6aoBHFmXKl1cf9ZtOV1SFbZxeNw aISQ2yKeIifG3JSpex5Y01Zf4wJdFYFaVyZr8hh045RVADvfUz3pJGvd8Nu8eTaKDshS 7kbw== X-Gm-Message-State: AOAM532Xb7MCljM3E2UxP3ldlOAjZCt3cW2mkCnhxaKsYBiV94HKSRJf C6a0fIHXWy6be5mWAG3nUFaE7I0xl+PQMg== X-Google-Smtp-Source: ABdhPJx9Yf79i5eMcHfVRFqI0KNUrLeDXETRyIN+q6C0g3CL6NnJxK48E4/Khfl3lHpLru2cVWcu5g== X-Received: by 2002:a17:902:bd09:: with SMTP id p9mr30261135pls.287.1596070695569; Wed, 29 Jul 2020 17:58:15 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s4sm3630423pfh.128.2020.07.29.17.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 17:58:13 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 29 Jul 2020 17:57:59 -0700 Message-Id: <20200730005804.19251-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730005804.19251-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200730005804.19251-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 20.08 1/6] doc: announce deprecation of master lcore X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Announce upcoming changes related to master/slave in reference to lcore. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- doc/guides/rel_notes/deprecation.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 99c98062ffc2..7c60779f3e68 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -148,3 +148,20 @@ Deprecation Notices Python 2 support will be completely removed in 20.11. In 20.08, explicit deprecation warnings will be displayed when running scripts with Python 2. + +* eal: To be more inclusive in choice of naming, the DPDK project + will replace uses of master/slave in the API's and command line arguments. + + References to master/slave in relation to lcore will be renamed + to initial/worker. The function ``rte_get_master_lcore()`` + will be renamed to ``rte_get_initial_lcore()``. + For the 20.11, release both names will be present and the + old function will be marked with the deprecated tag. + The old function will be removed in 21.11 version. + + The iterator for worker lcores will also change: + ``RTE_LCORE_FOREACH_SLAVE`` will be replaced with + ``RTE_LCORE_FOREACH_WORKER``. + + The ``master-lcore`` argument to testpmd will be replaced + with ``initial-lcore``. From patchwork Thu Jul 30 00:58:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 75017 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AB200A052B; Thu, 30 Jul 2020 02:58:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 535091C012; Thu, 30 Jul 2020 02:58:23 +0200 (CEST) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id 570601BFFA for ; Thu, 30 Jul 2020 02:58:18 +0200 (CEST) Received: by mail-pj1-f68.google.com with SMTP id c6so2995329pje.1 for ; Wed, 29 Jul 2020 17:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qVHzGTVWWtEn05tU3L+fnhFthJWsXZg327L2cS9cReA=; b=Da5ZwH9jV03R8mYxjs+sezjkr1Ziv+TyC0wV/Rkqw+enYOij/xMgjN6uO17FSdrc6Y MjCv5KbBd+ZtHka0frU22D8jvHfFncDDRKnBxSuXznJeePS506M3dyDvCK8eG2z/Wyjh l8g+F6jaV6kok/LasfilMW1Jb2x/jD9qswXju7uS2Prn2i8NYNkrzvPFgTxHK/ZPbdxR BxWKvpIdakS9askzEA1L2Jwm8+/LIrAqAkBC6ZgokSbinj8ktWoYLwXp4KOhxGbZJR3D e3FuFt5hqejfXOWyTzmU1R8hmDqK2vTF1fcec/Oth8LXOW5+MfODJ5GjjMm4JVPugJNX NIbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qVHzGTVWWtEn05tU3L+fnhFthJWsXZg327L2cS9cReA=; b=R0siuU01xk+rvPIE4h1wximRQC45sOjUVV2t2JEx5TumaAtN6W97UI++UKdtzsWSUz U/zo5oDlhlIwPjUinpuiPrIaGx5zIv2KarOG+Gztq/cpKEwL4rnPJKn8J+54jRKxKyQi 6axAqEX8A07T3WaV5dDBoHgvTXbzzgGpTy/Cp+L41GQVHmDNbIlGu7kI7crpbTwnwukU 3ThLg4n06j/Nn4Iq6ZCbeMaIoviWx7+OrUEwX3AvQceZtbcqFL4xGDhOmhsS1VDY3w9K yry+xc/4jctfc0JnzhcAUKl5M3wZ3nLToMvop8bhzafbqhyYBQO5lgZ0Ov0rEL8Lmkvr IAow== X-Gm-Message-State: AOAM5316SfD26/e6uesdHUaLr6KoO5OBi1lKBaBIO0FrfpkBAwDVwvNm O2FB30jgzypvjpeXWRj4hL6WutwmPccAew== X-Google-Smtp-Source: ABdhPJyjIKIkfgGFc1ES+xCF6TrH8rv/lcrbMZ/BLyOf7yfbNdu9Zzl4Jqs6zR5B7ANYD17Kxw/tvg== X-Received: by 2002:a17:902:cb91:: with SMTP id d17mr12055778ply.223.1596070697071; Wed, 29 Jul 2020 17:58:17 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s4sm3630423pfh.128.2020.07.29.17.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 17:58:16 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 29 Jul 2020 17:58:00 -0700 Message-Id: <20200730005804.19251-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730005804.19251-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200730005804.19251-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 20.08 2/6] kni: fix reference to master/slave process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" In DPDK, the correct terms for process are primary/secondary. This is bugfix, not a change in terms for new release. Fixes: f2e7592c474c ("kni: fix multi-process support") Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- lib/librte_kni/rte_kni.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h index f1bb782c68ea..855facd1a319 100644 --- a/lib/librte_kni/rte_kni.h +++ b/lib/librte_kni/rte_kni.h @@ -212,7 +212,7 @@ const char *rte_kni_get_name(const struct rte_kni *kni); /** * Register KNI request handling for a specified port,and it can - * be called by master process or slave process. + * be called by primary process or secondary process. * * @param kni * pointer to struct rte_kni. From patchwork Thu Jul 30 00:58:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 75018 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CBF25A052B; Thu, 30 Jul 2020 02:58:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D5C311C02E; Thu, 30 Jul 2020 02:58:25 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id D84481C00D for ; Thu, 30 Jul 2020 02:58:19 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id m16so12867163pls.5 for ; Wed, 29 Jul 2020 17:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pFRm7furItAeHvQLUIUdFtDjcN3CMaKG39D+OeMOgg4=; b=w4JzD/4t9Lm/zGUBEuajyQfukDkgONuj4jxjaE77TOs5SEaZdzqctJIGu9NJp8R9Hf Q/eFZUmOOdX58hoPxvoGmHp+FnU5ARn0bTtAbxUmZgLk2fCRm/A/5lR0Yja3/okL9GQX wSDk5WB/2sk8w26P3YUmvfPFFi8kCz+bMcgFeGLBIrcdbqVBqejdH2G/XzyS/hSJTuwn VOjMBB6u5rQlplPWrshIWsyKaXe3gIN16QKCWfFEVHriEme/zd9uwFDZxN6Wv2vTflSu 3ds7MILNpTwEAD0jScLz9nl2dLbAOCwMqdzP9mUAV8gzbRZb32LJH51JP4qV2MqWgypA FKFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pFRm7furItAeHvQLUIUdFtDjcN3CMaKG39D+OeMOgg4=; b=s0ajr3I7xStcIP+xB1mxZA2JLHEHR42zN2SpcMsTJmktdB13MiWXj+E+owpRw0Xa0u Lmc8AJ36mXnwHE6uBZtBk6Y3n1n7j8URRTevpYAwQc1zybayhfoapgcDwFHhRFLsIuZ5 2sRwl+Gh1TnTw/GFNBQbKXdK9P6xtbnCLK0WBs6Vl7rH/5l0qsDktiprrZxpjQLKMLtI g8Ps4T9BIyqFNfc7jRaC8gZFp/5R7hng6DuX0zn8a8mLmQv8rHvqWrS7ZYH+6s0MOtNP Ku4xda6uYSL2LyYMK+An37JmIrVINYC8JCYTfrJP6f8nn/tQxLaWgZaUCnZ0boQ4/T45 nA6Q== X-Gm-Message-State: AOAM5307gIkk7CIeqT7Yql0mvnfSZ+yxDPtqI8hzcBLOIkW27Elzw7cq IIcmTRR+swA/gG1A0TCwUCmKnKCiG+1HpA== X-Google-Smtp-Source: ABdhPJwn7S3cFjil9s6t5G/JJuiobCOXxF/Rf29/nptOG7g/DqIBpWlSiKtykaPrGtTtarbZ1kJ+kw== X-Received: by 2002:a17:90b:4286:: with SMTP id ik6mr7026666pjb.130.1596070698570; Wed, 29 Jul 2020 17:58:18 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s4sm3630423pfh.128.2020.07.29.17.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 17:58:17 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov Date: Wed, 29 Jul 2020 17:58:01 -0700 Message-Id: <20200730005804.19251-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730005804.19251-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200730005804.19251-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 20.08 3/6] doc: fix incorrect reference to master process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Correct terminolgy here is primary process. This is a bug in original doc. Fixes: fc1f2750a3ec ("doc: programmers guide") Signed-off-by: Stephen Hemminger Acked-by: Anatoly Burakov --- doc/guides/prog_guide/thread_safety_dpdk_functions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/prog_guide/thread_safety_dpdk_functions.rst b/doc/guides/prog_guide/thread_safety_dpdk_functions.rst index 0f539db2b869..5618e25e47fb 100644 --- a/doc/guides/prog_guide/thread_safety_dpdk_functions.rst +++ b/doc/guides/prog_guide/thread_safety_dpdk_functions.rst @@ -61,8 +61,8 @@ rather than subsequently in the forwarding threads. However, the DPDK performs checks to ensure that libraries are only initialized once. If initialization is attempted more than once, an error is returned. -In the multi-process case, the configuration information of shared memory will only be initialized by the master process. -Thereafter, both master and secondary processes can allocate/release any objects of memory that finally rely on rte_malloc or memzones. +In the multi-process case, the configuration information of shared memory will only be initialized by the primary process. +Thereafter, both primary and secondary processes can allocate/release any objects of memory that finally rely on rte_malloc or memzones. Interrupt Thread ---------------- From patchwork Thu Jul 30 00:58:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 75019 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 51078A052B; Thu, 30 Jul 2020 02:58:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C9E21C042; Thu, 30 Jul 2020 02:58:28 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id CA4DC1C00F for ; Thu, 30 Jul 2020 02:58:21 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id 74so5798915pfx.13 for ; Wed, 29 Jul 2020 17:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8DONJcb+B0Kct3z8WtmzrtzO54xMfxHpmxzUirtqFZA=; b=NWXvHfHwp2qFGBvJNC3cY+IcA0aXPnurXJ9F+Af8N62Yiny6Q3ixmc/ZWapFtSEN02 cHNt/Fdn23PcrEq5ZmPoqFNH1TeE6qoXel4dQt9yV3o3RINIeIW+qRMaoiFHMAh4BghB U9KcYKyWbhUzGQZFjZrBsFg/vBKbflibKUAwXOwlLWQEn05SvEO3/ZN5Y/EwinDX2kaw kbpWbhBxSSfU9e9bepvyC25y6pmm8gvVsLQiLb/U8oB/CAj2HYCda0yg0Ozg9y1EYfdS Gcs5zlq+35ADQhGyFQgsRo6uvim6v/wcupyzTeXTsXgfpvO9onOu4SDGLS5tNM1T0nzH +x/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8DONJcb+B0Kct3z8WtmzrtzO54xMfxHpmxzUirtqFZA=; b=MEGOSjI+GjihVlAHN0UYoZPpbYV0e/AQ1oJ+cdbxbpO4W9uBe5TPdWlAwdrmkXmZGX FGQ9rmDGmjQpQL7ZinwGoJxunaOpKXPTbabTzGyipj28FAp3OH1pxqqvEGoZIu3tax+4 qkoC8jBYLXw16GHAPQmDuvGx2Ksn25RBXyMxnmoKd4xdrNMtzhx/Zqo5UFEyzTPyH+nc 3OrKYBhltcRZxk6qxvEkz6qwKvE/TzuAczZNwFfozceSPFkDyO5edlkcc374XVc5pqES WxVqITbUUUOSXQni6xNSzdvm3q/eQvbkHQX0PKPJ5jkXMFkCbwGDPCN4ffbQxLxTJCGM itEg== X-Gm-Message-State: AOAM532SnRx02g8AXWEMoL0EkPonx2g60X/aiW21ARy5tzPVx5r2D3xS Mp73t/uB27Maw52Sv4/2CLCj1z0DEfvCHg== X-Google-Smtp-Source: ABdhPJyCtG4ywjUAHnFqGNRdUK1MM6AFS2XNHgMTcqgf8oEpl/Fr3YXteRLAyFcO+HZNba0b5YT+NA== X-Received: by 2002:aa7:9219:: with SMTP id 25mr746263pfo.4.1596070700486; Wed, 29 Jul 2020 17:58:20 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s4sm3630423pfh.128.2020.07.29.17.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 17:58:19 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 29 Jul 2020 17:58:02 -0700 Message-Id: <20200730005804.19251-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730005804.19251-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200730005804.19251-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 20.08 4/6] doc: announce deprecation blacklist/whitelist X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Announce upcoming changes for 20.11. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- doc/guides/rel_notes/deprecation.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 7c60779f3e68..abfec0aeaa4b 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -165,3 +165,24 @@ Deprecation Notices The ``master-lcore`` argument to testpmd will be replaced with ``initial-lcore``. + +* eal: The terms blacklist and whitelist to describe devices used + by DPDK will be replaced in the 20.11 relase. + This will apply to command line arguments as well as macros. + + The macro ``RTE_DEV_BLACKLISTED`` will be replaced with ``RTE_DEV_EXCLUDED`` + and ``RTE_DEV_WHITELISTED`` will be replaced with ``RTE_DEV_INCLUDED`` + ``RTE_BUS_SCAN_BLACKLIST`` and ``RTE_BUS_SCAN_WHITELIST`` will be + replaced with ``RTE_BUS_SCAN_EXCLUDED`` and ``RTE_BUS_SCAN_INCLUDED`` + respectively. Likewise ``RTE_DEVTYPE_BLACKLISTED_PCI`` and + ``RTE_DEVTYPE_WHITELISTED_PCI`` will be replaced with + ``RTE_DEVTYPE_EXCLUDED`` and ``RTE_DEVTYPE_INCLUDED``. + + The old macros will be marked as deprecated in 20.11 and removed + in the 21.11 release. + + The command line arguments to ``rte_eal_init`` will change from + ``-b, --pci-blacklist`` to ``-x, --exclude`` and + ``-w, --pci-whitelist`` to ``-i, --include``. + The old command line arguments will continue to be accepted in 20.11 + but will cause a runtime error message. From patchwork Thu Jul 30 00:58:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 75020 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D51FEA052B; Thu, 30 Jul 2020 02:59:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8A621C0AF; Thu, 30 Jul 2020 02:58:31 +0200 (CEST) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by dpdk.org (Postfix) with ESMTP id 572A01C023 for ; Thu, 30 Jul 2020 02:58:23 +0200 (CEST) Received: by mail-pg1-f170.google.com with SMTP id m22so15525854pgv.9 for ; Wed, 29 Jul 2020 17:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xe4zLGRRteVHW9pAECL50xSq9E2W6uZhJEFVb48n0lk=; b=AyC0oRUD8EBloFX1dna/wdSz+whaU02AoUekumL45Wg1mHSFEfeytcS3Av9eiv5Izq HUmBw3BmP8/blCO5eLJfFSrOedQXcRymWbUennpzlZ/6Pk+hwbHE3TZpDPh8pXQXKDoy Hpw24HSlsr9etTOgR0OnbtFCLqkABDICYJpaQtX9v4WhExo7FVhO3+PiHGsgJtqwjlXT ggKWCa0l8fUHHeaDBDwxpiG4bsHNjJaTfZWNjwT9c9DHDkZKF+Q4W4FM+0PPymeVqbn2 rHgWIvUtJI5W70zV7siSBwILhqUB6rcRu10tqhjVVhNcbeJe+vEDYj/SEdctV3iY7xxT 8n+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xe4zLGRRteVHW9pAECL50xSq9E2W6uZhJEFVb48n0lk=; b=pEFYsIJvYEkxqq+dqWW6f8LDq1aA7tj28Xi5oDrc+rBG3GMV3/30HvQmfFrJlVWQ2H yMuYs3nY9ERNFRZduHkhyc7ywZoWKdE9joYuRxa3J7sPzlNd3itvfkTdt2oparGKclag XwE6CmJZEIk+mc/zbGd1odtA/RePYmXwnPEWqw5H4QOCZRDhUQxH3YshH6xR1WgRMxf3 29CY3HCqMxabUTnjEVEB+0aiGlzwfcYoio89SKv7cBcM5594kXaDx8bTVvJAU9q/i4BF dfIMHmekrlwuWZsGhEnCJjo3w05BXCmGWHjNG5IXHtlKUSpDQoMrZQaPxDVsIrMCjGTX s+7Q== X-Gm-Message-State: AOAM533uv4DnEABPpjj2T9x3UshYoMo72ADMDsn58zcPRknVKwnhgy0A ILCDlK5lv7wzkoXW+hunnemTBtOhANnJmw== X-Google-Smtp-Source: ABdhPJzwrooRAhXxlw7Lryc8IzTAMDWpmjHWA5qViV4iQsU3Y9xHxnw0eHZdL3C07x8sEdngu6eazg== X-Received: by 2002:aa7:988e:: with SMTP id r14mr724253pfl.35.1596070702063; Wed, 29 Jul 2020 17:58:22 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s4sm3630423pfh.128.2020.07.29.17.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 17:58:20 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Wed, 29 Jul 2020 17:58:03 -0700 Message-Id: <20200730005804.19251-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730005804.19251-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200730005804.19251-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 20.08 5/6] rte_ethdev: change comment to rte_dev_eth_mac_addr_add X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 comment used the term whitelist and was awkardly written. Replace it with simpler direct description of adding a new address. No code or API changes for this. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- lib/librte_ethdev/rte_ethdev.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index 57e4a6ca58fd..cde6a9645360 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -3387,8 +3387,7 @@ int rte_eth_dev_priority_flow_ctrl_set(uint16_t port_id, struct rte_eth_pfc_conf *pfc_conf); /** - * Add a MAC address to an internal array of addresses used to enable whitelist - * filtering to accept packets only if the destination MAC address matches. + * Add a MAC address to an set of addresses used for accepting incoming packets. * * @param port_id * The port identifier of the Ethernet device. From patchwork Thu Jul 30 00:58:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 75021 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55575A052B; Thu, 30 Jul 2020 02:59:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CEEC31C0B3; Thu, 30 Jul 2020 02:58:33 +0200 (CEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by dpdk.org (Postfix) with ESMTP id BA27E1C027 for ; Thu, 30 Jul 2020 02:58:24 +0200 (CEST) Received: by mail-pl1-f177.google.com with SMTP id k13so5055832plk.13 for ; Wed, 29 Jul 2020 17:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I5sKRyXKuajb969Jr63hNkImFQ2DVIph311QxK/eru4=; b=HJ+T5tmDR9NJCPY30ykATmt0CVfivSn3AAyNVYMUVFuNFQBmssfS92LmQcJWuKfw6d kVBjqpS4oxPha1a2t854HrirJ3JsrZx0Lrvj73lmweGXKcNoVFi0Q/CZNBBoStSUvd72 oJdhRJ6fIAO4p5x3c/84efohVcgHUThMN0rJgXzKj9Xs8XAT3q3Q8niOt1q1i2NgF5Zg eLVYahGTOvTVEZzakfp/INIezzSX5E+TVQ+xrlla7TvBFAvOu4D1s/pM9dHbekUwaX04 lAuv7EPOFv8uf6nO9tNQPwAgSh1DXxBIyvgBjbMIJIJMyB2SEQ9UO/un/u0vslJdGRnn vaEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I5sKRyXKuajb969Jr63hNkImFQ2DVIph311QxK/eru4=; b=Jmj66J99WOGGz0YRmOuvbEVW/1vQsNNic/KJqb1bFf0H4apcPuBwhkflOxmXoU8xgX ewryKls96E2QcdwbUvmz/sz1wDlBdi9wY8GUB9JTNlZkerz18p17b2POycnfpM1uu705 OXH0SfByKLx954s6G1Vm2H88t9n4GzdnC7VSx//VgwCUcjg8dkl/jDGNvmC/RiNF0uhp 5OCyEqb6fN9kqLkyZRYpFhX55XJAPMSP843yG+qUSh6gWr4JN5Fq/dprBxA8c8Km86kD c0IMcW60Hk/iCub6OHYsAKeImVSAobGFdVKRo6nQMNiu86zwYIzN8jeGHQFXTObm8lJ6 Ie1A== X-Gm-Message-State: AOAM533r0dLjVOznowNsMLYyykWzP+dJ7yrBWrhkriTDf19JUpNsB4Bj cNemjdgWwl4YSIuisvvFBnCH1veoAoNP6w== X-Google-Smtp-Source: ABdhPJzYmdQz96Gg9iDxv+f3yYUzb/dIf92VwXorAJdX/Ac0P0sKkRW7h6e8tmawlu5zuus1Zjh7jw== X-Received: by 2002:a17:90a:8009:: with SMTP id b9mr13287385pjn.190.1596070703515; Wed, 29 Jul 2020 17:58:23 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s4sm3630423pfh.128.2020.07.29.17.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 17:58:22 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Wed, 29 Jul 2020 17:58:04 -0700 Message-Id: <20200730005804.19251-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200730005804.19251-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200730005804.19251-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 20.08 6/6] check_maintainers: change variable names X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Change variable names in python script: replace whitelist with include_files and blacklist with exclude_files. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi Acked-by: Thomas Monjalon --- devtools/check-maintainers.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devtools/check-maintainers.sh b/devtools/check-maintainers.sh index 85a300f0a029..df3f740b6e84 100755 --- a/devtools/check-maintainers.sh +++ b/devtools/check-maintainers.sh @@ -42,10 +42,10 @@ parse_fx () # for line in $( (sed '/^-\+$/d' $1 ; echo) | sed 's,^$,§,') ; do if echo "$line" | grep -q '^§$' ; then # empty line delimit end of section - whitelist=$(files $flines) - blacklist=$(files $xlines) - match=$(aminusb "$whitelist" "$blacklist") - if [ -n "$whitelist" ] ; then + include_files=$(files $flines) + exclude_files=$(files $xlines) + match=$(aminusb "$include_files" "$exclude_files") + if [ -n "$include_files" ] ; then printf "# $title " maintainers=$(echo "$maintainers" | sed -r 's,.*<(.*)>.*,\1,') maintainers=$(printf "$maintainers" | sed -e 's,^,<,' -e 's,$,>,')