get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77759,
    "url": "http://patches.dpdk.org/api/patches/77759/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200915151114.12024-11-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": "<20200915151114.12024-11-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200915151114.12024-11-stephen@networkplumber.org",
    "date": "2020-09-15T15:11:07",
    "name": "[v3,10/17] app/test-eventdev: replace use of master lcore with main lcore",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4f18d66e9fb8c50582f4142729f33e2a6dcf774c",
    "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/20200915151114.12024-11-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 12238,
            "url": "http://patches.dpdk.org/api/series/12238/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12238",
            "date": "2020-09-15T15:11:09",
            "name": "Replace terms master/slave",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/12238/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77759/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/77759/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 5D0FCA04C7;\n\tTue, 15 Sep 2020 17:37:31 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E337C1C0CE;\n\tTue, 15 Sep 2020 17:37:30 +0200 (CEST)",
            "from mail-oi1-f171.google.com (mail-oi1-f171.google.com\n [209.85.167.171]) by dpdk.org (Postfix) with ESMTP id C67CE1C0C9\n for <dev@dpdk.org>; Tue, 15 Sep 2020 17:37:29 +0200 (CEST)",
            "by mail-oi1-f171.google.com with SMTP id t76so4325267oif.7\n for <dev@dpdk.org>; Tue, 15 Sep 2020 08:37:29 -0700 (PDT)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id c127sm13742278pfa.165.2020.09.15.08.11.38\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 15 Sep 2020 08:11:39 -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=wbswMm41oESrSRFS3FILbDd/tMu65rFM7dxlEf3D9iA=;\n b=hdiDCUKCFEUunjqzyJLbNmfCqhDIEHusuZ5ASfVH11bCEEdFxd6eFZFjU4rkLuRhVt\n 4MFxW9yUZztMnyVFjsz7hQIvzfS7sT+vykfRClY/9sK0W2DqH4tinQqbXs5Zwo3AcrlY\n BCJz7PH/tcuSoltMwJ5+lShYMRXeDrJ11/qePyvImf+6uV9wNRG5+B+Hd30pNlqe/CE1\n 7RO4bPb4IOJMd3eXnQPBXHVHll1NtgnhQsB/ZuHWq4eLCrq9UWPITw2ZUfYHobRiRrQ/\n pMYC2QrBezvKMhE2zg/sOKOdrKJMhcH1u4KaZN8pLFGqL3+ao/kqGyZhixoL9bmuhoRt\n XzGQ==",
        "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=wbswMm41oESrSRFS3FILbDd/tMu65rFM7dxlEf3D9iA=;\n b=AYQvL+awK8xa2IXOTTuZ2yIwycs7uJRonJQVyrORxsjQ5Ossxb8EhOAQdgSqQeXTK6\n dSW/IZKLwXhppL6ZY4oKWV1pAvK1A7zvxTUWsRIeij63WzNU2W66wacp/bE11NkcRQJ5\n EjIcS+z5+EsyvNWfEepDNoJZnPkB7AbTKN4BNgOe9zGAQpXMCbv+78mLEzLUm9iG9CWS\n hqcu1+1hrqq3FOS5r/1qhrjnGTIrAJ2aM/2f+HKeUX5PHCMEbh2P8HDs9bb3ZCffzEkN\n wPj2bsy+hlbdKGAI1m0UZiH5D+VHCbEADXfjq5AuF3kYVF/eFfFk48mj/d80LNPqU4Hc\n GVmA==",
        "X-Gm-Message-State": "AOAM530QtZn5sUgfMeuU19BTjm/zogjBR0L8brCtvPeQ9GcsFPiuzlH0\n L6JrbUBO6eTzvbgx5ywvWxw3U51lJdfEew==",
        "X-Google-Smtp-Source": "\n ABdhPJzGChJvOIbEARDwmStThWPc8aE5dD1KPrrdvAgAVkUsXmsf7QiJbXjnq4FG+mj/uar8CT45YQ==",
        "X-Received": "by 2002:a17:90a:5295:: with SMTP id\n w21mr4514420pjh.194.1600182700752;\n Tue, 15 Sep 2020 08:11:40 -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": "Tue, 15 Sep 2020 08:11:07 -0700",
        "Message-Id": "<20200915151114.12024-11-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20200915151114.12024-1-stephen@networkplumber.org>",
        "References": "<20200911190701.29171-1-stephen@networkplumber.org>\n <20200915151114.12024-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 10/17] app/test-eventdev: replace use of\n\tmaster lcore with main lcore",
        "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 lcore.\n\nAcked-by: Anatoly Burakov <anatoly.burakov@intel.com>\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n app/test-eventdev/evt_options.c          |  2 +-\n app/test-eventdev/test_order_common.c    | 12 ++++++------\n app/test-eventdev/test_perf_common.c     | 16 ++++++++--------\n app/test-eventdev/test_pipeline_common.c | 11 +++++------\n 4 files changed, 20 insertions(+), 21 deletions(-)",
    "diff": "diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c\nindex c60b61a904b0..6994ac453c8c 100644\n--- a/app/test-eventdev/evt_options.c\n+++ b/app/test-eventdev/evt_options.c\n@@ -438,7 +438,7 @@ evt_options_dump(struct evt_options *opt)\n \tevt_dump(\"verbose_level\", \"%d\", opt->verbose_level);\n \tevt_dump(\"socket_id\", \"%d\", opt->socket_id);\n \tevt_dump(\"pool_sz\", \"%d\", opt->pool_sz);\n-\tevt_dump(\"master lcore\", \"%d\", rte_get_master_lcore());\n+\tevt_dump(\"main lcore\", \"%d\", rte_get_main_lcore());\n \tevt_dump(\"nb_pkts\", \"%\"PRIu64, opt->nb_pkts);\n \tevt_dump(\"nb_timers\", \"%\"PRIu64, opt->nb_timers);\n \tevt_dump_begin(\"available lcores\");\ndiff --git a/app/test-eventdev/test_order_common.c b/app/test-eventdev/test_order_common.c\nindex 4190f9ade82b..24ee6957bf9e 100644\n--- a/app/test-eventdev/test_order_common.c\n+++ b/app/test-eventdev/test_order_common.c\n@@ -74,15 +74,15 @@ order_opt_check(struct evt_options *opt)\n \t\treturn -1;\n \t}\n \n-\t/* 1 producer + N workers + 1 master */\n+\t/* 1 producer + N workers + main */\n \tif (rte_lcore_count() < 3) {\n \t\tevt_err(\"test need minimum 3 lcores\");\n \t\treturn -1;\n \t}\n \n \t/* Validate worker lcores */\n-\tif (evt_lcores_has_overlap(opt->wlcores, rte_get_master_lcore())) {\n-\t\tevt_err(\"worker lcores overlaps with master lcore\");\n+\tif (evt_lcores_has_overlap(opt->wlcores, rte_get_main_lcore())) {\n+\t\tevt_err(\"worker lcores overlaps with main lcore\");\n \t\treturn -1;\n \t}\n \n@@ -117,8 +117,8 @@ order_opt_check(struct evt_options *opt)\n \t}\n \n \t/* Validate producer lcore */\n-\tif (plcore == (int)rte_get_master_lcore()) {\n-\t\tevt_err(\"producer lcore and master lcore should be different\");\n+\tif (plcore == (int)rte_get_main_lcore()) {\n+\t\tevt_err(\"producer lcore and main lcore should be different\");\n \t\treturn -1;\n \t}\n \tif (!rte_lcore_is_enabled(plcore)) {\n@@ -245,7 +245,7 @@ order_launch_lcores(struct evt_test *test, struct evt_options *opt,\n \n \tint wkr_idx = 0;\n \t/* launch workers */\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (!(opt->wlcores[lcore_id]))\n \t\t\tcontinue;\n \ndiff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c\nindex b3af4bfecaff..955edb752671 100644\n--- a/app/test-eventdev/test_perf_common.c\n+++ b/app/test-eventdev/test_perf_common.c\n@@ -254,7 +254,7 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt,\n \n \tint port_idx = 0;\n \t/* launch workers */\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (!(opt->wlcores[lcore_id]))\n \t\t\tcontinue;\n \n@@ -268,7 +268,7 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt,\n \t}\n \n \t/* launch producers */\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (!(opt->plcores[lcore_id]))\n \t\t\tcontinue;\n \n@@ -541,8 +541,8 @@ perf_opt_check(struct evt_options *opt, uint64_t nb_queues)\n {\n \tunsigned int lcores;\n \n-\t/* N producer + N worker + 1 master when producer cores are used\n-\t * Else N worker + 1 master when Rx adapter is used\n+\t/* N producer + N worker + main when producer cores are used\n+\t * Else N worker + main when Rx adapter is used\n \t */\n \tlcores = opt->prod_type == EVT_PROD_TYPE_SYNT ? 3 : 2;\n \n@@ -552,8 +552,8 @@ perf_opt_check(struct evt_options *opt, uint64_t nb_queues)\n \t}\n \n \t/* Validate worker lcores */\n-\tif (evt_lcores_has_overlap(opt->wlcores, rte_get_master_lcore())) {\n-\t\tevt_err(\"worker lcores overlaps with master lcore\");\n+\tif (evt_lcores_has_overlap(opt->wlcores, rte_get_main_lcore())) {\n+\t\tevt_err(\"worker lcores overlaps with main lcore\");\n \t\treturn -1;\n \t}\n \tif (evt_lcores_has_overlap_multi(opt->wlcores, opt->plcores)) {\n@@ -573,8 +573,8 @@ perf_opt_check(struct evt_options *opt, uint64_t nb_queues)\n \t\t\topt->prod_type == EVT_PROD_TYPE_EVENT_TIMER_ADPTR) {\n \t\t/* Validate producer lcores */\n \t\tif (evt_lcores_has_overlap(opt->plcores,\n-\t\t\t\t\trte_get_master_lcore())) {\n-\t\t\tevt_err(\"producer lcores overlaps with master lcore\");\n+\t\t\t\t\trte_get_main_lcore())) {\n+\t\t\tevt_err(\"producer lcores overlaps with main lcore\");\n \t\t\treturn -1;\n \t\t}\n \t\tif (evt_has_disabled_lcore(opt->plcores)) {\ndiff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c\nindex 17088b1b48e4..4ac41a9ad1e3 100644\n--- a/app/test-eventdev/test_pipeline_common.c\n+++ b/app/test-eventdev/test_pipeline_common.c\n@@ -60,7 +60,7 @@ pipeline_launch_lcores(struct evt_test *test, struct evt_options *opt,\n \n \tint port_idx = 0;\n \t/* launch workers */\n-\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n+\tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\tif (!(opt->wlcores[lcore_id]))\n \t\t\tcontinue;\n \n@@ -106,9 +106,8 @@ int\n pipeline_opt_check(struct evt_options *opt, uint64_t nb_queues)\n {\n \tunsigned int lcores;\n-\t/*\n-\t * N worker + 1 master\n-\t */\n+\n+\t/* N worker + main */\n \tlcores = 2;\n \n \tif (opt->prod_type != EVT_PROD_TYPE_ETH_RX_ADPTR) {\n@@ -129,8 +128,8 @@ pipeline_opt_check(struct evt_options *opt, uint64_t nb_queues)\n \t}\n \n \t/* Validate worker lcores */\n-\tif (evt_lcores_has_overlap(opt->wlcores, rte_get_master_lcore())) {\n-\t\tevt_err(\"worker lcores overlaps with master lcore\");\n+\tif (evt_lcores_has_overlap(opt->wlcores, rte_get_main_lcore())) {\n+\t\tevt_err(\"worker lcores overlaps with main lcore\");\n \t\treturn -1;\n \t}\n \tif (evt_has_disabled_lcore(opt->wlcores)) {\n",
    "prefixes": [
        "v3",
        "10/17"
    ]
}