From patchwork Mon Jul 27 19:20:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 74872 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 A48AEA053E; Mon, 27 Jul 2020 21:20:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B40A91BFC8; Mon, 27 Jul 2020 21:20:29 +0200 (CEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by dpdk.org (Postfix) with ESMTP id 2FBD52B8D for ; Mon, 27 Jul 2020 21:20:26 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id mt12so2773447pjb.4 for ; Mon, 27 Jul 2020 12:20:26 -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=ng44RD8n3O1jfUXv3Tns41A5nKJJ1k2ForAVb+ncqBU=; b=0IknxIOqh2RnlisEetIjS8Lx8kWXejKWVssz2jCHYvWoPD294A94pQnmWLT/Wyojsk oZXsrWYD4atEaa3polv5oxbF1s7ZjvPws7kB9MKvG5uzn3y+NuHBuiq2RPskrha3Mhg9 uJ1ApwvSbe6Ecfei3iiartk1iyF5D6RAHOAz+4F8BZfUXHCFFgPMorOMVNM8J+zVcJdz l6E02p+SdNAZkZ8XgqT3ybVtFNaHUhGiKV+x6f0XsnA/C2q2YqjUtgzFiY0U1bKuWyC4 oge4iSkR4UnGUB3Arh5ax/Z/qm4yhPWGunOAoUKTXjmq6wACDL/HruwQUYdViJ2/RYVJ tNzw== 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=ng44RD8n3O1jfUXv3Tns41A5nKJJ1k2ForAVb+ncqBU=; b=q81gy81CfScW/q3r7KxxF4Qu+vB2swa8INQO/7nubtnb7PCY1J8tqno+b8WmewUBfp yG1kwpys+zzpYNi1OlhQErmnQi4Ru1F0cIblK+wwfqSE4SbmICqqp/A/heXsh7MKFi6R M9DVEoLf4ztd3IVC2YBJLhvEjejuPDprN/nM0lGNrYNcmZK9lftFTv+xA/94dmkILU66 79Ax3wykqPQQcd5zQLCOx/gDWVupPkWK6E1IfxhQ38ld+qSToVklvqaFf3Fda4N6OA9I w84DjEa+Il2ceGpgJEjKz0F1KeP8ExwJQcC0lg9vlxXB+Ol3jFrZ29sAa+5K0IuIEwD9 1QMw== X-Gm-Message-State: AOAM533ktod4lqJlexRLbXGVNppyE9zjsUfqpryZRgy+IUPN/W433LgD fl6iPrWHr46NS6+3P3Gx3agdgvAhlt/nmw== X-Google-Smtp-Source: ABdhPJyBQVkpILcl3Tr17qBiYuyurPZbJpIb/7pZOEm+WtsfxNkyXfFFFoJ0Ry76k6wmOk0obzc4WA== X-Received: by 2002:a17:90a:c693:: with SMTP id n19mr745604pjt.53.1595877624949; Mon, 27 Jul 2020 12:20:24 -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 s67sm5994552pfs.117.2020.07.27.12.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 12:20:24 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 27 Jul 2020 12:20:10 -0700 Message-Id: <20200727192015.26418-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727192015.26418-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200727192015.26418-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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 --- 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..31a2b942fba5 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 macros related to primary and secondary lcore will also + be 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 Mon Jul 27 19:20:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 74873 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 52EA8A053E; Mon, 27 Jul 2020 21:20:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 471BA1BFE8; Mon, 27 Jul 2020 21:20:31 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id DE41B1BF7B for ; Mon, 27 Jul 2020 21:20:27 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id j19so10431008pgm.11 for ; Mon, 27 Jul 2020 12:20:27 -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=BWKH+F0IrFHYopSFWHtzqvqhHaZ1pyesihe+LsAjjc9VNx1AU4bhFYJoBmmBNmmGHN gpF31F+uxoPlKjPpKlZUwC5PBUBjSoKGCJJSyJPmd5fo2kR78Zmeb8MPyAiQaD9mLSms 3JXVmwUme5jF9QaxPvd2UJFj2/3GPRtnrnMdl1KaS6G0JKLlpBeSmzk58Gv42DE4N/0q KuWK65zXu1KqxmkFMbQNJ8ZewzBpIa/lLlM6liQwD4+9DLGDxdcA0HaaQGdO6j3eEdiE ns+IuXvHJBXTJKcLOHtecUYDdlx9fzsASYNWVDYzLaAvOhqqKl/b6EpfKWdy6clJEPt1 GXOw== 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=EZql2SgfBWx/z7rKtbeylkMVEdhiT2ZthYjmfnWPI1aSHD+AFwC2zF8zK+Nx+tiYeS 9GgOxdPbuiUrzUFG2bOJric3wcAFXrOW96t3JEQEVwBoyIMepUAFxPiMLKIqAs5qDEwW t1D4FqvvFbY2ItiQUAlNsrUiTsFPNgc0R+RSQdHklXyfF3IFzAsTi0rm9TdhC6e4CuSq 4Fw4yR00q+4CiqxEVraiU49pXnwNFp51FiE3ksanlTLw9Rhj+LaLNEf3zIBGDLE6IUKV gzf5RHgtd4WPDEGRpd8rU1SD1eIg0az4iKgz7j38lONhu+XmTGo9sZ9hpYJ2wIJtrx9I KFhA== X-Gm-Message-State: AOAM532S4oqb66diqv5RKaAo3N4Cvc3o17uof9v8QSrVPGbHbcw+giYm gFZPJzzLB84ovWM71/iH7KeaEp5qy2maDg== X-Google-Smtp-Source: ABdhPJyTj8O5jXXZhT/eyAjSvqAFBV6X8rwzWWJykl40sSKrzmbh96qgf9hgdzeOr88CkVQNoZ0QKg== X-Received: by 2002:a63:4b44:: with SMTP id k4mr15438391pgl.305.1595877626390; Mon, 27 Jul 2020 12:20:26 -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 s67sm5994552pfs.117.2020.07.27.12.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 12:20:25 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 27 Jul 2020 12:20:11 -0700 Message-Id: <20200727192015.26418-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727192015.26418-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200727192015.26418-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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 --- 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 Mon Jul 27 19:20:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 74874 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 7E003A053E; Mon, 27 Jul 2020 21:20:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B3DC01BFF5; Mon, 27 Jul 2020 21:20:34 +0200 (CEST) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by dpdk.org (Postfix) with ESMTP id 1DF4C1BFBA for ; Mon, 27 Jul 2020 21:20:29 +0200 (CEST) Received: by mail-pj1-f50.google.com with SMTP id t15so10155872pjq.5 for ; Mon, 27 Jul 2020 12:20:29 -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=qNN1UgezR3ffgtLW2to8bvkRz6UZ0TSt++h82LOkKU8=; b=Z45N2wsbpL+Yctu0iexa6MlTgLol/OuADf8HxihkMbTCHzcDoq8hW0FJYqos9RDJsf v5B7Jqo/QM6C+/IP8bykNc1gmmkZUPSKA5gK72yAZwAMTBu1BO7ZcyLz8W7efr51u6An Y50K38HuMCsHk+yCss4kZ8j8947s9YoD6umEKn75fduQGWkDyK9jGwt+wWMVL/aAivMp VAz68tLn/znSPd9Fw1Oc9N1xpw+3phWHxQ5ICGVfCkN3XsccKru3420bUUXTiDkaoF7m EZVZZGYE15KIkdldWL5Mk1TFnUEUk9Tboh9Mto20k6csc/bQarIn+YwFyASTuSBpaQ3q YGxA== 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=qNN1UgezR3ffgtLW2to8bvkRz6UZ0TSt++h82LOkKU8=; b=DNyjuhqVvtBg2eBajjR5PNGZIoL8A9S0oqdUjlj2VUTO4Uq4zhVLJHcqGjdPXzzCrb Jj4d0euRpatCmUfKNW8Ujs8TCDY85lLcR68qqzQdLfgquAU7CVuMt5Zf1eLLL3TPBZEv qKLmx3vX9hv+wwm4YRU+kRh/N7Pg9D261MLMbfMldeZ6BorFNetDT/YcXmgWhGVIUn8i voYYM6/g0KWi/C8VhtCVPanNd7JxROKZ2Aovqeu4T1+oKcnGm3mH6vtqOO342z+IRkLL mL4wepUPAo6unKf8GdseKBXhYEKFnfbHu002hJ8gZmBGoKvfi79iy86CE4iELDbqiRRz SbCw== X-Gm-Message-State: AOAM531vwhchr5xZiNmDB3VyS792ZMOgM3OpMzDhRJy05MMxjEANL1gg x7qJ5fnZ7LS8bdk4QEsrW6AzvcTu3YFmxw== X-Google-Smtp-Source: ABdhPJxBSpP19EENURv+1RUww3zaOGJjZ0V3KdSZHbLQew1wRwsKM9hc8gf9w9SqwKpPAAQj47FiUw== X-Received: by 2002:a17:902:7791:: with SMTP id o17mr20263934pll.224.1595877627805; Mon, 27 Jul 2020 12:20:27 -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 s67sm5994552pfs.117.2020.07.27.12.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 12:20:26 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , bernard.iremonger@intel.com Date: Mon, 27 Jul 2020 12:20:12 -0700 Message-Id: <20200727192015.26418-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727192015.26418-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200727192015.26418-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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") Cc: bernard.iremonger@intel.com 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 Mon Jul 27 19:20:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 74875 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 62037A053E; Mon, 27 Jul 2020 21:20:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E4EE01C029; Mon, 27 Jul 2020 21:20:35 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 75AB71BFDD for ; Mon, 27 Jul 2020 21:20:30 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id k1so10185819pjt.5 for ; Mon, 27 Jul 2020 12:20:30 -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=tBSanLfeRtdkYAi6/a5w9sZyxGdV3UlVG+/Yxqijg3Q=; b=YW2VOxAerIbaniYI9RLrxwpWVzp6Zuyg2L/rUo6B5EhN38pdXvBiQ4OB4CjgtvD89T Wj+tzeYteyDHSU4xdpwVXx5uWmC6B/jFfehlcHVVSmXhUA3V5IhlXRFSXzRfi8fZ7UEe Siq9PCq2Ceep9qX22YSY0gB/trEEMsGPLfnCq86FQnUaHlr4bk68nSysmkTFJzEZ/noG uSosLsx2DMa8HyPJbsiZgOrLmalmYYLWNYbt4WVlrdNXmlRpK/oDr7M2xsA+jsvR94np ZUWS5U+HU5bi7iYC/+XqamuIGA/7x4HhQDcya6G5xpOJjfGAy/tAuxTbK6tpQ839qqOQ kBFA== 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=tBSanLfeRtdkYAi6/a5w9sZyxGdV3UlVG+/Yxqijg3Q=; b=eC2yHsr6Ik30INqOaKdUbl4OlaVJx2oSL3glzIgiwlnKkLPZE2vQgZEvmYP6oYfWYI /W0iGrymRLG170W6JXnvLIBeDXaforWU8fK1TSR6/TKTZs08XuPvLk8BMq/yzUYryard Qgh6a9hW4WKWJ3XzHkfsMYj3atrGhhs5WFB9zisNZ9nyEvfnroxmkMdtb/N4i4o52BLf a3nSryA71/fTK6NYkvKgiO6UbRhAcdKEHoo6KsRyo0457AGEV6dX9UwvHGAvSBC+nz7O OLW3Y5PmhrVi1a3cdcaXjay04cJDLMitlXVc9YtKjqTAg4MVJ7foSJWRrxr9FEQ3Cz+X jDBw== X-Gm-Message-State: AOAM532NAfYEYD/gSf2g211Ug0n4X+iGYJEhBQDEXkytlh/hNc+WU6Ce jU3w9IPZ/zHYYVMztoLSQQcz1JeiGwZ50w== X-Google-Smtp-Source: ABdhPJxlD1DdOeLij+8jIzSgqIhmngi/YhUHGf1/77Id/n+8hgkdHNbabj2RmwVwMmJQE2u6HA6KuA== X-Received: by 2002:a17:90a:eac7:: with SMTP id ev7mr667620pjb.21.1595877629139; Mon, 27 Jul 2020 12:20:29 -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 s67sm5994552pfs.117.2020.07.27.12.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 12:20:28 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 27 Jul 2020 12:20:13 -0700 Message-Id: <20200727192015.26418-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727192015.26418-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200727192015.26418-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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 around the terms blacklist and whitelist. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 31a2b942fba5..b022a9f91ece 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -165,3 +165,19 @@ 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 by blocked and allowed in the 20.11 relase. + This will apply to command line arguments and macros. + + The macros ``RTE_DEV_BLACKLISTED`` will be replaced with ``RTE_DEV_BLOCKED`` + and ``RTE_DEV_WHITELISTED`` will be replaced with ``RTE_DEV_ALLOWED`` + + 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 Mon Jul 27 19:20:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 74876 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 ACB7AA053E; Mon, 27 Jul 2020 21:21:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3457B1C0B3; Mon, 27 Jul 2020 21:20:37 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 9C4001BFF2 for ; Mon, 27 Jul 2020 21:20:31 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id d4so10442743pgk.4 for ; Mon, 27 Jul 2020 12:20:31 -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=DIS9U9855JZqBw0HaLTN+woqj3YGNSLeRvlSB1IjiNaeLyF0vEmzN0wLQ5U95MVC9A z5SOlcA/MYjG5Tq1AjrgugPzAL9oOp+bgNSEin9HJu1ySMwbRnwjbO5RTWpIWscocJa4 DkgyruASpxhLfrEne5dhHgF9lxZcecOpxO/TNsMKcZoZy6BiZyOIDPjpe+m754mkfGg/ fw563gU/LRkehuA3yIPP7GwhZ8rYNkM5s26B+EA8Y5b1KOD7ngTP1y5y+OI2311ACFRi Xmt9f+uZq5CQ2Xr0glR2SPe85hbT8bCYMAovzmS3LtsB5sDwDsAuEDBQ1seJrq3QrRAM 72bg== 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=cHtzGNG0qMMqdir3OcfIT0eN/SLW/MZZJ1KomQsSHqHe1wR2S9iJiTVSgjLIu+fgob PNqrs60ty6L5Ox7kVL0aAM4E2alK4TlUzs/gxeuOdk228vBqfX2ZoOmq9jSjq/Cm1NUI gpwuB3veOfUdfSA8H6rqyCh7tpM/ULrFiEkzhNFopMK9wOtdezjMUxl9StI0Pg1AhhYw 8frWQYbWEs/nPaGyzKvzkZdP+O5SPKNyPoKtHS4ro//cRirUggNtIEYZcvCfcBgdAhtp 4WoJkg357xvsQZg6ois/8bqtYfa+6OjsoWz7MmkLq8CGUFOZ2A49Rpd683X9zBWXBSUK jHng== X-Gm-Message-State: AOAM5320nSATafvCQ6Pwk49WD2Ng2dX69JKebcYsJC3zUFKHbeYp9f12 aJ38UflPaQur+h03cxoQl+y938kxbX2f5A== X-Google-Smtp-Source: ABdhPJzqwEhGDv5ONrI5DHNcQfEWn4CdLiGS2wrbB5TE5RvUL3IsfM6aqcYVm8DVO7WHcYVmgEUjzA== X-Received: by 2002:a63:ce41:: with SMTP id r1mr21668341pgi.203.1595877630479; Mon, 27 Jul 2020 12:20:30 -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 s67sm5994552pfs.117.2020.07.27.12.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 12:20:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Mon, 27 Jul 2020 12:20:14 -0700 Message-Id: <20200727192015.26418-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727192015.26418-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200727192015.26418-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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 Mon Jul 27 19:20:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 74877 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 D69C6A053E; Mon, 27 Jul 2020 21:21:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C9461C0BC; Mon, 27 Jul 2020 21:20:38 +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 D99A91BFF4 for ; Mon, 27 Jul 2020 21:20:32 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id ha11so2856257pjb.1 for ; Mon, 27 Jul 2020 12:20:32 -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=MoJobg7Nj1+sZmzZy2D6dZn9xplCBAOHg05C3ElwWvW9Gxv7OznKvQWVlRyXRywkE6 MxL3KnpNfKmNozfTPHThlROXJabBgcWklYFFH2O8MBzDLvvMvvN8K7H1evKQrJ79dz4W qtVut4QWCKgwJf/CLFgEutMW/hA/GXo+tXM4WxksNYsg/Cw7enEUslvkYDZbLKoqZGNV pwvq2/bwuYwAhj7apftY3wXaoqPgUnKd6m3fBYVWJK3AxTepGr0Ddd4jWKp1j/XbLfQC PfRIs1hGn8BtahkiolmKLCsC6xcYqg9SxMJ26LA70JYJ5qPFav060A39A8kMt3RVLxdV mxNg== 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=eXDiqc5PpCgB+TnhNMWQ1fyFeaKRxf9jZo6HtD6S0q6JwsfgT2uHKxCYJB3LJRyA+p uNv6ck0hQF3MYDvJzZP9yYSt9ONUUWEIvwb8o0AeZVzRiwLPcEGCZYEOaGmQXkBUFx/0 EbLQLPvY680fc/zJ/cFAPVzzyl3hOSBONSdcSWab8nWpBck44QNpOjsCsHdaquCYixwJ eP+/J9c483nNTpK6uQx4PatmqN0lBcrg+YehZhmBVK6tKCIDWQJPSwvf1+tcJpeC0Jih WsJ2nIvNhUYHdDQdpaNBn7hy76AcuWs+qOAiOP0FvJMhQKPhiRLfWensCJxriF6E1u1M lSxg== X-Gm-Message-State: AOAM533Zj5a/K6Zk3LA+y+lL+g9yMjszHjJ9dcEjwzHPEeArD9jl4aEi 81pJF80w2qsvs6QC/ehO7epye3I01ryIKg== X-Google-Smtp-Source: ABdhPJxHezHrLxr7yN0X/NqTgvLPEgp+tOIfih1/aDC2xmGcXUksRaEJS9Pz5cQgvUq4vbmHbskRuA== X-Received: by 2002:a17:90a:2349:: with SMTP id f67mr720539pje.17.1595877631738; Mon, 27 Jul 2020 12:20:31 -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 s67sm5994552pfs.117.2020.07.27.12.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 12:20:30 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Mon, 27 Jul 2020 12:20:15 -0700 Message-Id: <20200727192015.26418-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727192015.26418-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200727192015.26418-1-stephen@networkplumber.org> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 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 --- 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,$,>,')