get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100511,
    "url": "http://patches.dpdk.org/api/patches/100511/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211005135909.726091-2-bruce.richardson@intel.com/",
    "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": "<20211005135909.726091-2-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211005135909.726091-2-bruce.richardson@intel.com",
    "date": "2021-10-05T13:59:05",
    "name": "[v6,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://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211005135909.726091-2-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 19390,
            "url": "http://patches.dpdk.org/api/series/19390/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19390",
            "date": "2021-10-05T13:59:04",
            "name": "improve telemetry support with in-memory mode",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/19390/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100511/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/100511/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 58328A0C4C;\n\tTue,  5 Oct 2021 16:18:06 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8321141367;\n\tTue,  5 Oct 2021 16:18:02 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 2C760412D2\n for <dev@dpdk.org>; Tue,  5 Oct 2021 16:18:00 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Oct 2021 06:59:20 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.151])\n by orsmga008.jf.intel.com with ESMTP; 05 Oct 2021 06:59:18 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10128\"; a=\"206563930\"",
            "E=Sophos;i=\"5.85,349,1624345200\"; d=\"scan'208\";a=\"206563930\"",
            "E=Sophos;i=\"5.85,349,1624345200\"; d=\"scan'208\";a=\"488044088\""
        ],
        "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": "Tue,  5 Oct 2021 14:59:05 +0100",
        "Message-Id": "<20211005135909.726091-2-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20211005135909.726091-1-bruce.richardson@intel.com>",
        "References": "<20210915141030.23514-1-bruce.richardson@intel.com>\n <20211005135909.726091-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v6 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": [
        "v6",
        "1/5"
    ]
}