get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 101602,
    "url": "http://patchwork.dpdk.org/api/patches/101602/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211014104907.856490-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": "<20211014104907.856490-2-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211014104907.856490-2-bruce.richardson@intel.com",
    "date": "2021-10-14T10:49:04",
    "name": "[v9,1/4] eal: limit telemetry to primary processes",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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": {
        "id": 24651,
        "url": "http://patchwork.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211014104907.856490-2-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 19649,
            "url": "http://patchwork.dpdk.org/api/series/19649/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=19649",
            "date": "2021-10-14T10:49:03",
            "name": "improve telemetry support with in-memory mode",
            "version": 9,
            "mbox": "http://patchwork.dpdk.org/series/19649/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/101602/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/101602/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 6D035A0C47;\n\tThu, 14 Oct 2021 12:50:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2EBF641235;\n\tThu, 14 Oct 2021 12:49:59 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 9B06E40041\n for <dev@dpdk.org>; Thu, 14 Oct 2021 12:49:56 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Oct 2021 03:49:56 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.151])\n by orsmga007.jf.intel.com with ESMTP; 14 Oct 2021 03:49:54 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10136\"; a=\"227609277\"",
            "E=Sophos;i=\"5.85,372,1624345200\"; d=\"scan'208\";a=\"227609277\"",
            "E=Sophos;i=\"5.85,372,1624345200\"; d=\"scan'208\";a=\"481214283\""
        ],
        "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>,\n Conor Walsh <conor.walsh@intel.com>",
        "Date": "Thu, 14 Oct 2021 11:49:04 +0100",
        "Message-Id": "<20211014104907.856490-2-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20211014104907.856490-1-bruce.richardson@intel.com>",
        "References": "<20210915141030.23514-1-bruce.richardson@intel.com>\n <20211014104907.856490-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v9 1/4] 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>\nTested-by: Conor Walsh <conor.walsh@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 fb734012a4..56a60f13e9 100644\n--- a/lib/eal/freebsd/eal.c\n+++ b/lib/eal/freebsd/eal.c\n@@ -950,7 +950,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": [
        "v9",
        "1/4"
    ]
}