Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77478/?format=api
http://patches.dpdk.org/api/patches/77478/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200911190701.29171-12-stephen@networkplumber.org/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200911190701.29171-12-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20200911190701.29171-12-stephen@networkplumber.org", "date": "2020-09-11T19:06:57", "name": "[11/15] examples/multi_process: replace references to master/slave", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "853a8415ae388bff2367bd8cf149036f309637c2", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200911190701.29171-12-stephen@networkplumber.org/mbox/", "series": [ { "id": 12162, "url": "http://patches.dpdk.org/api/series/12162/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12162", "date": "2020-09-11T19:06:46", "name": "Replace terms master/slave lcore with main/worker lcore", "version": 1, "mbox": "http://patches.dpdk.org/series/12162/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77478/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/77478/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 02004A04C0;\n\tFri, 11 Sep 2020 21:09:11 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6E39E1C1AB;\n\tFri, 11 Sep 2020 21:07:29 +0200 (CEST)", "from mail-pj1-f67.google.com (mail-pj1-f67.google.com\n [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 1757A1C10A\n for <dev@dpdk.org>; Fri, 11 Sep 2020 21:07:25 +0200 (CEST)", "by mail-pj1-f67.google.com with SMTP id b17so2133126pji.1\n for <dev@dpdk.org>; Fri, 11 Sep 2020 12:07:25 -0700 (PDT)", "from hermes.corp.microsoft.com (204-195-22-127.wavecable.com.\n [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id z23sm2979984pfg.220.2020.09.11.12.07.22\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 11 Sep 2020 12:07:23 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Xtcybjp8nXmdj1WLK+/ToG0DZTS7OHhF9+5fJA4hreg=;\n b=PDbRswfM2PhgDN7xeDLoOMD0mcWCo5/bBVzJnTZ+k1EpgI37NcPcnrPKbE/mmOMyBp\n owUhizcgqn0y3d5lakHgTn2PXaQ1rkE4FLRxCBvz7Wvw6mWdeP5dz+iCYcEe17pAxeYr\n 2Aj2dAT73Pn23xbALz1pCW3fBFH9gpmArzhRwnLG87CIBB018bu1biU4hH6NeLvtJ5uq\n wDFiOrnM80NCMrdRcjepkvtUZxbUzfMqMLJ4OJyVkuKRH7mqyuaTIk3MDPPzkhcnOU9e\n VWGx6OKsilkdksD3TCZ636erTxAy92Eq+DYZF7pW8rLhRSM+rktk2EMhciV5dyRbgJ+8\n 6Xjw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Xtcybjp8nXmdj1WLK+/ToG0DZTS7OHhF9+5fJA4hreg=;\n b=fLHUpvh2NUEk/a7Y/umGJlu2WcsusQz9U01kqYoKCsiqJpmyI9tdVA/Os2ZhE2gUAI\n 1tN2CBi389JoQfxvNgOJLacofWGa0hZW7NRw50PhdLvoc0TEC6qjKDTUepE649YdX4FJ\n D8E2D8MZLeX3ZTujUa5+0Dq4JcxAzcKMM76X4LMhFICucHe40fSaMH2gn6jwMMzr185X\n fVjdSvAYoO8dydEeE9W+2O5LLSxTWiptagulAT5VrXXDQxBa62glZKbY83MMmmv9lcn6\n iy2dWPOVj4+jOBdyccZSZeeWKZP8rsLUprh4zV/UZoWABs5GEG1CEe5ScHpEx/CzJ7pU\n OcaA==", "X-Gm-Message-State": "AOAM531hb3lpyvEXA92SvFBLGOP6o/wvToeT7QaST/2TBhjRNlvcjrTL\n OyoZhGqJg0CZrcCIULZnxF1Jy08+4GYytw==", "X-Google-Smtp-Source": "\n ABdhPJwgRuwhQjXtUUhNkhiwIgzdfqR80+WDFEbzU2Ce/sHWCM+ZpnjQluNX4nRFo2wHgH6kXJfPOA==", "X-Received": "by 2002:a17:90a:e60d:: with SMTP id\n j13mr3512557pjy.61.1599851243899;\n Fri, 11 Sep 2020 12:07:23 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>", "Date": "Fri, 11 Sep 2020 12:06:57 -0700", "Message-Id": "<20200911190701.29171-12-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.27.0", "In-Reply-To": "<20200911190701.29171-1-stephen@networkplumber.org>", "References": "<20200911190701.29171-1-stephen@networkplumber.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 11/15] examples/multi_process: replace references\n\tto master/slave", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Replace master with main and slave with worker.\nFix the wording in comments.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n .../multi_process/client_server_mp/mp_server/main.c | 10 +++++-----\n examples/multi_process/simple_mp/main.c | 4 ++--\n examples/multi_process/symmetric_mp/main.c | 2 +-\n 3 files changed, 8 insertions(+), 8 deletions(-)", "diff": "diff --git a/examples/multi_process/client_server_mp/mp_server/main.c b/examples/multi_process/client_server_mp/mp_server/main.c\nindex 280dab867281..ec7f6b11f30e 100644\n--- a/examples/multi_process/client_server_mp/mp_server/main.c\n+++ b/examples/multi_process/client_server_mp/mp_server/main.c\n@@ -84,7 +84,7 @@ get_printable_mac_addr(uint16_t port)\n /*\n * This function displays the recorded statistics for each port\n * and for each client. It uses ANSI terminal codes to clear\n- * screen when called. It is called from a single non-master\n+ * screen when called. It is called from a single worker\n * thread in the server process, when the process is run with more\n * than one lcore enabled.\n */\n@@ -146,7 +146,7 @@ do_stats_display(void)\n }\n \n /*\n- * The function called from each non-master lcore used by the process.\n+ * The function called from each worker lcore used by the process.\n * The test_and_set function is used to randomly pick a single lcore on which\n * the code to display the statistics will run. Otherwise, the code just\n * repeatedly sleeps.\n@@ -244,7 +244,7 @@ process_packets(uint32_t port_num __rte_unused,\n }\n \n /*\n- * Function called by the master lcore of the DPDK process.\n+ * Function called by the main lcore of the DPDK process.\n */\n static void\n do_packet_forwarding(void)\n@@ -297,8 +297,8 @@ main(int argc, char *argv[])\n \t/* clear statistics */\n \tclear_stats();\n \n-\t/* put all other cores to sleep bar master */\n-\trte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MASTER);\n+\t/* put all other cores to sleep except main */\n+\trte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MAIN);\n \n \tdo_packet_forwarding();\n \treturn 0;\ndiff --git a/examples/multi_process/simple_mp/main.c b/examples/multi_process/simple_mp/main.c\nindex fc79528462e9..86b7d244a91f 100644\n--- a/examples/multi_process/simple_mp/main.c\n+++ b/examples/multi_process/simple_mp/main.c\n@@ -108,12 +108,12 @@ main(int argc, char **argv)\n \n \tRTE_LOG(INFO, APP, \"Finished Process Init.\\n\");\n \n-\t/* call lcore_recv() on every slave lcore */\n+\t/* call lcore_recv() on every worker lcore */\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n \t\trte_eal_remote_launch(lcore_recv, NULL, lcore_id);\n \t}\n \n-\t/* call cmd prompt on master lcore */\n+\t/* call cmd prompt on main lcore */\n \tstruct cmdline *cl = cmdline_stdin_new(simple_mp_ctx, \"\\nsimple_mp > \");\n \tif (cl == NULL)\n \t\trte_exit(EXIT_FAILURE, \"Cannot create cmdline instance\\n\");\ndiff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c\nindex 9a16e198cbf4..95ef436c56eb 100644\n--- a/examples/multi_process/symmetric_mp/main.c\n+++ b/examples/multi_process/symmetric_mp/main.c\n@@ -473,7 +473,7 @@ main(int argc, char **argv)\n \n \tRTE_LOG(INFO, APP, \"Finished Process Init.\\n\");\n \n-\trte_eal_mp_remote_launch(lcore_main, NULL, CALL_MASTER);\n+\trte_eal_mp_remote_launch(lcore_main, NULL, CALL_MAIN);\n \n \treturn 0;\n }\n", "prefixes": [ "11/15" ] }{ "id": 77478, "url": "