get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/80998/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 80998,
    "url": "http://patches.dpdk.org/api/patches/80998/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201015225736.12167-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": "<20201015225736.12167-12-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201015225736.12167-12-stephen@networkplumber.org",
    "date": "2020-10-15T22:57:27",
    "name": "[v7,11/20] app: replace references to master/slave",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7bb5067f294422dc5d701381912a3d4cf1b9d4f0",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201015225736.12167-12-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 13030,
            "url": "http://patches.dpdk.org/api/series/13030/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13030",
            "date": "2020-10-15T22:57:16",
            "name": "Replace terms master/slave",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/13030/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/80998/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/80998/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 DA776A04DB;\n\tFri, 16 Oct 2020 01:02:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3582B1E56A;\n\tFri, 16 Oct 2020 00:58:13 +0200 (CEST)",
            "from mail-pl1-f195.google.com (mail-pl1-f195.google.com\n [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 254811E537\n for <dev@dpdk.org>; Fri, 16 Oct 2020 00:58:04 +0200 (CEST)",
            "by mail-pl1-f195.google.com with SMTP id d6so172841plo.13\n for <dev@dpdk.org>; Thu, 15 Oct 2020 15:58:04 -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 x4sm324055pfm.86.2020.10.15.15.58.00\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 15 Oct 2020 15:58:00 -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=MLPmr/W3zvU4Al/Yqr8Bpqu9xLdPlHZ5I40ogMjlocQ=;\n b=hk/xyWFXskFhZM6583m3Ip+ss92FdiFMf+AzaCYe/FwpLsnOtbNibibEJqaRPXUFKv\n rBEnfippDI9UTZ3Yabl4ZS9he8gZgjx6v1W0eUi4/SzF/yMyZUzuWRkLlZOidU57oamI\n mrgbM8huNTfBT9u4UKzWTvgTmBL18xmy3vV4hCqMO0AtAaldLRNJZ1v1HbjXwmfBCPl7\n 3KrHl9eqq+fYZ8cSDPRYjP749UuodYLCVI0poi+SeOOG8D/nJN+g5owEpYUmV+uANL4t\n xpy7B2XBdDI1Num48Epe5txabnhsOaFi8DLBg+fqo5+ES0jL0PuWIhCLnZ8P7NBX6/rP\n vqZg==",
        "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=MLPmr/W3zvU4Al/Yqr8Bpqu9xLdPlHZ5I40ogMjlocQ=;\n b=bazkbIs6c6PU0Uo2eRQltc9lE8SuJr3oNjEE++30ftVOYPfB6B2rZiCZZ5kLUafFmQ\n zTXIK9gl6eRVeiEpOyUGMlc5r91jteD3Dd8+ueECmTatnyfzOGylKD1VWR1FSouUuUtK\n 6e+M5hl4sE1auQCW8rkwQm42AgZuxAIH5afgtKBp8X3wyK+D3XtYRS0XcFi08qHoYYRm\n wCJ3jfY5FZPN06dFXhjK7JCSimctmDZWPJJNeCCSKwMuqH34NG6VsQsW9B8XlF41MLDk\n k1i4VNDnU554vKfJm1/aO/NUkaE4uontvMjbjbpQ4+LIRJpztlQNKhJvDF8ioJbvFceb\n NmkQ==",
        "X-Gm-Message-State": "AOAM531ZqKyGzjPDwZD3h+kNKaniOvnWMaa2G7KhiGW4C6Wzdp73m2Sg\n iyaQ7FxnOAuQsgyFb7GuL4H2BEEiUeuWRg==",
        "X-Google-Smtp-Source": "\n ABdhPJxQJYHis5HxXopxUkNRR90PA2DK4vdhylFlByv5BjF73Q0yCtOsXonyI3eIaKBi+9yw1gO93g==",
        "X-Received": "by 2002:a17:90b:378c:: with SMTP id\n mz12mr957743pjb.137.1602802681800;\n Thu, 15 Oct 2020 15:58:01 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Anatoly Burakov <anatoly.burakov@intel.com>",
        "Date": "Thu, 15 Oct 2020 15:57:27 -0700",
        "Message-Id": "<20201015225736.12167-12-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20201015225736.12167-1-stephen@networkplumber.org>",
        "References": "<20200911190701.29171-1-stephen@networkplumber.org>\n <20201015225736.12167-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 11/20] app: replace references to 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": "For the miscellaneous tests.  Replace references to master lcore with\nmain lcore and slave lcore with worker lcore.\n\nAcked-by: Anatoly Burakov <anatoly.burakov@intel.com>\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n app/test-acl/main.c              |  2 +-\n app/test-bbdev/test_bbdev_perf.c | 16 ++++++++--------\n app/test-compress-perf/main.c    |  8 ++++----\n app/test-crypto-perf/main.c      | 14 +++++++-------\n app/test-flow-perf/main.c        |  2 +-\n app/test-pipeline/main.c         |  4 ++--\n app/test-sad/main.c              |  4 ++--\n 7 files changed, 25 insertions(+), 25 deletions(-)",
    "diff": "diff --git a/app/test-acl/main.c b/app/test-acl/main.c\nindex 2a3a35a05404..2cb2fe2579ad 100644\n--- a/app/test-acl/main.c\n+++ b/app/test-acl/main.c\n@@ -1098,7 +1098,7 @@ main(int argc, char **argv)\n \tif (config.trace_file != NULL)\n \t\ttracef_init();\n \n-\tRTE_LCORE_FOREACH_SLAVE(lcore)\n+\tRTE_LCORE_FOREACH_WORKER(lcore)\n \t\t rte_eal_remote_launch(search_ip5tuples, NULL, lcore);\n \n \tsearch_ip5tuples(NULL);\ndiff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 6e5535d36180..93789434d98d 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -3722,14 +3722,14 @@ bler_test(struct active_device *ad,\n \n \trte_atomic16_set(&op_params->sync, SYNC_WAIT);\n \n-\t/* Master core is set at first entry */\n+\t/* Main core is set at first entry */\n \tt_params[0].dev_id = ad->dev_id;\n \tt_params[0].lcore_id = rte_lcore_id();\n \tt_params[0].op_params = op_params;\n \tt_params[0].queue_id = ad->queue_ids[used_cores++];\n \tt_params[0].iter_count = 0;\n \n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (used_cores >= num_lcores)\n \t\t\tbreak;\n \n@@ -3746,7 +3746,7 @@ bler_test(struct active_device *ad,\n \trte_atomic16_set(&op_params->sync, SYNC_START);\n \tret = bler_function(&t_params[0]);\n \n-\t/* Master core is always used */\n+\t/* Main core is always used */\n \tfor (used_cores = 1; used_cores < num_lcores; used_cores++)\n \t\tret |= rte_eal_wait_lcore(t_params[used_cores].lcore_id);\n \n@@ -3840,14 +3840,14 @@ throughput_test(struct active_device *ad,\n \n \trte_atomic16_set(&op_params->sync, SYNC_WAIT);\n \n-\t/* Master core is set at first entry */\n+\t/* Main core is set at first entry */\n \tt_params[0].dev_id = ad->dev_id;\n \tt_params[0].lcore_id = rte_lcore_id();\n \tt_params[0].op_params = op_params;\n \tt_params[0].queue_id = ad->queue_ids[used_cores++];\n \tt_params[0].iter_count = 0;\n \n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (used_cores >= num_lcores)\n \t\t\tbreak;\n \n@@ -3864,7 +3864,7 @@ throughput_test(struct active_device *ad,\n \trte_atomic16_set(&op_params->sync, SYNC_START);\n \tret = throughput_function(&t_params[0]);\n \n-\t/* Master core is always used */\n+\t/* Main core is always used */\n \tfor (used_cores = 1; used_cores < num_lcores; used_cores++)\n \t\tret |= rte_eal_wait_lcore(t_params[used_cores].lcore_id);\n \n@@ -3888,7 +3888,7 @@ throughput_test(struct active_device *ad,\n \t/* In interrupt TC we need to wait for the interrupt callback to deqeue\n \t * all pending operations. Skip waiting for queues which reported an\n \t * error using processing_status variable.\n-\t * Wait for master lcore operations.\n+\t * Wait for main lcore operations.\n \t */\n \ttp = &t_params[0];\n \twhile ((rte_atomic16_read(&tp->nb_dequeued) <\n@@ -3901,7 +3901,7 @@ throughput_test(struct active_device *ad,\n \ttp->mbps /= TEST_REPETITIONS;\n \tret |= (int)rte_atomic16_read(&tp->processing_status);\n \n-\t/* Wait for slave lcores operations */\n+\t/* Wait for worker lcores operations */\n \tfor (used_cores = 1; used_cores < num_lcores; used_cores++) {\n \t\ttp = &t_params[used_cores];\n \ndiff --git a/app/test-compress-perf/main.c b/app/test-compress-perf/main.c\nindex ed21605d89c2..cc9951a9b107 100644\n--- a/app/test-compress-perf/main.c\n+++ b/app/test-compress-perf/main.c\n@@ -389,7 +389,7 @@ main(int argc, char **argv)\n \ti = 0;\n \tuint8_t qp_id = 0, cdev_index = 0;\n \n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\tif (i == total_nb_qps)\n \t\t\tbreak;\n@@ -413,7 +413,7 @@ main(int argc, char **argv)\n \twhile (test_data->level <= test_data->level_lst.max) {\n \n \t\ti = 0;\n-\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\t\tif (i == total_nb_qps)\n \t\t\t\tbreak;\n@@ -424,7 +424,7 @@ main(int argc, char **argv)\n \t\t\ti++;\n \t\t}\n \t\ti = 0;\n-\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\t\tif (i == total_nb_qps)\n \t\t\t\tbreak;\n@@ -449,7 +449,7 @@ main(int argc, char **argv)\n \n \tcase ST_DURING_TEST:\n \t\ti = 0;\n-\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\t\tif (i == total_nb_qps)\n \t\t\t\tbreak;\n \ndiff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c\nindex 62ae6048bd1c..ac1163283a34 100644\n--- a/app/test-crypto-perf/main.c\n+++ b/app/test-crypto-perf/main.c\n@@ -594,7 +594,7 @@ main(int argc, char **argv)\n \n \ti = 0;\n \tuint8_t qp_id = 0, cdev_index = 0;\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\tif (i == total_nb_qps)\n \t\t\tbreak;\n@@ -658,7 +658,7 @@ main(int argc, char **argv)\n \t\t\t\tdistribution_total[buffer_size_count - 1];\n \n \t\ti = 0;\n-\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\t\tif (i == total_nb_qps)\n \t\t\t\tbreak;\n@@ -668,7 +668,7 @@ main(int argc, char **argv)\n \t\t\ti++;\n \t\t}\n \t\ti = 0;\n-\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\t\tif (i == total_nb_qps)\n \t\t\t\tbreak;\n@@ -688,7 +688,7 @@ main(int argc, char **argv)\n \n \t\twhile (opts.test_buffer_size <= opts.max_buffer_size) {\n \t\t\ti = 0;\n-\t\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\t\t\tif (i == total_nb_qps)\n \t\t\t\t\tbreak;\n@@ -698,7 +698,7 @@ main(int argc, char **argv)\n \t\t\t\ti++;\n \t\t\t}\n \t\t\ti = 0;\n-\t\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\t\t\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\t\t\tif (i == total_nb_qps)\n \t\t\t\t\tbreak;\n@@ -722,7 +722,7 @@ main(int argc, char **argv)\n \t}\n \n \ti = 0;\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \n \t\tif (i == total_nb_qps)\n \t\t\tbreak;\n@@ -742,7 +742,7 @@ main(int argc, char **argv)\n \n err:\n \ti = 0;\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (i == total_nb_qps)\n \t\t\tbreak;\n \ndiff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c\nindex c420da6a57c1..ba5ba112f262 100644\n--- a/app/test-flow-perf/main.c\n+++ b/app/test-flow-perf/main.c\n@@ -1445,7 +1445,7 @@ main(int argc, char **argv)\n \n \tif (enable_fwd) {\n \t\tinit_lcore_info();\n-\t\trte_eal_mp_remote_launch(start_forwarding, NULL, CALL_MASTER);\n+\t\trte_eal_mp_remote_launch(start_forwarding, NULL, CALL_MAIN);\n \t}\n \n \tRTE_ETH_FOREACH_DEV(port) {\ndiff --git a/app/test-pipeline/main.c b/app/test-pipeline/main.c\nindex 7f0d6d3f1862..c8ee4e8927a4 100644\n--- a/app/test-pipeline/main.c\n+++ b/app/test-pipeline/main.c\n@@ -66,8 +66,8 @@ main(int argc, char **argv)\n \tapp_init();\n \n \t/* Launch per-lcore init on every lcore */\n-\trte_eal_mp_remote_launch(app_lcore_main_loop, NULL, CALL_MASTER);\n-\tRTE_LCORE_FOREACH_SLAVE(lcore) {\n+\trte_eal_mp_remote_launch(app_lcore_main_loop, NULL, CALL_MAIN);\n+\tRTE_LCORE_FOREACH_WORKER(lcore) {\n \t\tif (rte_eal_wait_lcore(lcore) < 0)\n \t\t\treturn -1;\n \t}\ndiff --git a/app/test-sad/main.c b/app/test-sad/main.c\nindex 8380fad744f3..1024757add1b 100644\n--- a/app/test-sad/main.c\n+++ b/app/test-sad/main.c\n@@ -657,11 +657,11 @@ main(int argc, char **argv)\n \n \tadd_rules(sad, 10);\n \tif (config.parallel_lookup)\n-\t\trte_eal_mp_remote_launch(lookup, sad, SKIP_MASTER);\n+\t\trte_eal_mp_remote_launch(lookup, sad, SKIP_MAIN);\n \n \tlookup(sad);\n \tif (config.parallel_lookup)\n-\t\tRTE_LCORE_FOREACH_SLAVE(lcore_id)\n+\t\tRTE_LCORE_FOREACH_WORKER(lcore_id)\n \t\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n \t\t\t\treturn -1;\n \n",
    "prefixes": [
        "v7",
        "11/20"
    ]
}