get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100824,
    "url": "http://patches.dpdk.org/api/patches/100824/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211008171852.736387-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": "<20211008171852.736387-2-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211008171852.736387-2-bruce.richardson@intel.com",
    "date": "2021-10-08T17:18:48",
    "name": "[v7,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/20211008171852.736387-2-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 19464,
            "url": "http://patches.dpdk.org/api/series/19464/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19464",
            "date": "2021-10-08T17:18:47",
            "name": "improve telemetry support with in-memory mode",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/19464/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100824/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/100824/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 4DA79A0C43;\n\tFri,  8 Oct 2021 19:19:18 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6C2EF4068F;\n\tFri,  8 Oct 2021 19:19:16 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id D240F40140\n for <dev@dpdk.org>; Fri,  8 Oct 2021 19:19:12 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Oct 2021 10:19:04 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.151])\n by orsmga001.jf.intel.com with ESMTP; 08 Oct 2021 10:19:02 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10131\"; a=\"207362113\"",
            "E=Sophos;i=\"5.85,358,1624345200\"; d=\"scan'208\";a=\"207362113\"",
            "E=Sophos;i=\"5.85,358,1624345200\"; d=\"scan'208\";a=\"523050391\""
        ],
        "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,  8 Oct 2021 18:18:48 +0100",
        "Message-Id": "<20211008171852.736387-2-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20211008171852.736387-1-bruce.richardson@intel.com>",
        "References": "<20210915141030.23514-1-bruce.richardson@intel.com>\n <20211008171852.736387-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 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>\nAcked-by:  Ciara Power <ciara.power@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": [
        "v7",
        "1/5"
    ]
}