get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100235,
    "url": "http://patchwork.dpdk.org/api/patches/100235/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211001111559.14043-2-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20211001111559.14043-2-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211001111559.14043-2-bruce.richardson@intel.com",
    "date": "2021-10-01T11:15:55",
    "name": "[v4,1/5] eal: limit telemetry to primary processes",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e470ccd16f290a6583450193a5dc7b4eca3f4a03",
    "submitter": {
        "id": 20,
        "url": "http://patchwork.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211001111559.14043-2-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 19323,
            "url": "http://patchwork.dpdk.org/api/series/19323/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=19323",
            "date": "2021-10-01T11:15:54",
            "name": "improve telemetry support with in-memory mode",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/19323/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/100235/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/100235/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0F5B2A0032;\n\tFri,  1 Oct 2021 13:16:22 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C89FF41154;\n\tFri,  1 Oct 2021 13:16:17 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 3C7DE4114F\n for <dev@dpdk.org>; Fri,  1 Oct 2021 13:16:16 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Oct 2021 04:16:15 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.151])\n by fmsmga001.fm.intel.com with ESMTP; 01 Oct 2021 04:16:14 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10123\"; a=\"225060766\"",
            "E=Sophos;i=\"5.85,337,1624345200\"; d=\"scan'208\";a=\"225060766\"",
            "E=Sophos;i=\"5.85,337,1624345200\"; d=\"scan'208\";a=\"619024591\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Ciara Power <ciara.power@intel.com>,\n David Marchand <david.marchand@redhat.com>,\n Anatoly Burakov <anatoly.burakov@intel.com>,\n Kevin Traynor <ktraynor@redhat.com>,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Date": "Fri,  1 Oct 2021 12:15:55 +0100",
        "Message-Id": "<20211001111559.14043-2-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20211001111559.14043-1-bruce.richardson@intel.com>",
        "References": "<20210915141030.23514-1-bruce.richardson@intel.com>\n <20211001111559.14043-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 1/5] eal: limit telemetry to primary processes",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Telemetry interface should be exposed for primary processes only, since\nsecondary processes will conflict on socket creation, and since all\ndata in secondary process is generally available to primary. For\nexample, all device stats for ethdevs, cryptodevs, etc. will all be\ncommon across processes.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/eal/freebsd/eal.c | 2 +-\n lib/eal/linux/eal.c   | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c\nindex 6cee5ae369..b06a2c1662 100644\n--- a/lib/eal/freebsd/eal.c\n+++ b/lib/eal/freebsd/eal.c\n@@ -946,7 +946,7 @@ rte_eal_init(int argc, char **argv)\n \t\trte_eal_init_alert(\"Cannot clear runtime directory\");\n \t\treturn -1;\n \t}\n-\tif (!internal_conf->no_telemetry) {\n+\tif (rte_eal_process_type() == RTE_PROC_PRIMARY && !internal_conf->no_telemetry) {\n \t\tint tlog = rte_log_register_type_and_pick_level(\n \t\t\t\t\"lib.telemetry\", RTE_LOG_WARNING);\n \t\tif (tlog < 0)\ndiff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c\nindex 3577eaeaa4..0d0fc66668 100644\n--- a/lib/eal/linux/eal.c\n+++ b/lib/eal/linux/eal.c\n@@ -1320,7 +1320,7 @@ rte_eal_init(int argc, char **argv)\n \t\trte_eal_init_alert(\"Cannot clear runtime directory\");\n \t\treturn -1;\n \t}\n-\tif (!internal_conf->no_telemetry) {\n+\tif (rte_eal_process_type() == RTE_PROC_PRIMARY && !internal_conf->no_telemetry) {\n \t\tint tlog = rte_log_register_type_and_pick_level(\n \t\t\t\t\"lib.telemetry\", RTE_LOG_WARNING);\n \t\tif (tlog < 0)\n",
    "prefixes": [
        "v4",
        "1/5"
    ]
}