Show a patch.

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

{
    "id": 74591,
    "url": "https://patches.dpdk.org/api/patches/74591/",
    "web_url": "https://patches.dpdk.org/patch/74591/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200721182242.5366-6-stephen@networkplumber.org>",
    "date": "2020-07-21T18:22:39",
    "name": "[v4,5/8] app/proc-info: enhance mempool to print ops name",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4a2718288c66e9a17d14e214b536d88f2727a4ab",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/patch/74591/mbox/",
    "series": [
        {
            "id": 11222,
            "url": "https://patches.dpdk.org/api/series/11222/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11222",
            "date": "2020-07-21T18:22:34",
            "name": "app/proc-info enhancements",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/11222/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74591/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74591/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Gm-Message-State": "AOAM530C+s4xxJR40FLPYcSW1jKy6L4Y6FaMTXiDYtiIfYFgDv05dSSE\n tNTcTh/rlR63rdE5Q03iFUx5JJYp/hRNHA==",
        "X-Google-Smtp-Source": "\n ABdhPJwhNPidMh75MFq7sEvr59hrQAbWiBcgfnlUcc/69UKlPk5T4ybgETIKoDgKiMTq4F2MWbKczA==",
        "List-Post": "<mailto:dev@dpdk.org>",
        "MIME-Version": "1.0",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<20200506193741.24117-1-stephen@networkplumber.org>\n <20200721182242.5366-1-stephen@networkplumber.org>",
        "Subject": "[dpdk-dev] [PATCH v4 5/8] app/proc-info: enhance mempool to print\n\tops name",
        "Sender": "\"dev\" <dev-bounces@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 D5E0BA0526;\n\tTue, 21 Jul 2020 20:23:39 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CDC541C0BC;\n\tTue, 21 Jul 2020 20:23:04 +0200 (CEST)",
            "from mail-pl1-f193.google.com (mail-pl1-f193.google.com\n [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id 82CE11C0AC\n for <dev@dpdk.org>; Tue, 21 Jul 2020 20:23:00 +0200 (CEST)",
            "by mail-pl1-f193.google.com with SMTP id x8so10611598plm.10\n for <dev@dpdk.org>; Tue, 21 Jul 2020 11:23:00 -0700 (PDT)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id 76sm21434031pfu.139.2020.07.21.11.22.57\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Jul 2020 11:22:58 -0700 (PDT)"
        ],
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-Mailer": "git-send-email 2.27.0",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "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=6DljVwQwZifQ8F3xEcClWR3a4alMcuL6XIRUFg6hoPs=;\n b=Hof54o5/wHEz5fNd/Q//kWb1di8xpWX0m4ZHnGTQIcdDMHZS+SSdx3uLZIMkTlZMjK\n Dp7AU3gRXSBNUwzaSFmr4FtJ2dqFJE4yksNCGU7l6blfUx46ncrq8VyW0ZatWENIjGE2\n VodDWdEhpuOQDabTniVXjoNXlECUz66itK3cqzTGNgLzRFFf8Jyimmmu0iryBA3kw5sD\n K+/qXRDQDjiRytLQeNVZMsA7P4bcdyvj/LE6TKDBoJqfLvFicmLytl9a9t2orn5xAbmG\n M1XHhFJGdvUeLi9gt4HOKZzzF1Kxzs9uk7wV5OSTE2I1mDBo9Aqk2ImAawAm2A93nSnx\n JclQ==",
        "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=6DljVwQwZifQ8F3xEcClWR3a4alMcuL6XIRUFg6hoPs=;\n b=jU5Gk+0n/W3QL1USq/T+3C5NIWZCfVnpzNxjI+2CYj9Zcw8zgJg5cTTDYrosPL4V3T\n YseDcZZSGU9hLdzpsdIqbw1aTsmtuILuJYJv4pf1QCTj27YzXILmG2WzM35jDBd1fT/y\n UQ35QUTrFPLu94PBp8WmpQHNWx0n6ABvntWkJQ7IIDbG7ZQasUt3K4RlptHUrsrb3w4f\n ujFvd2a0wJFI7JiaxF8c5h98i9Ie7/SdDRdF1eSqLo+8l3qmVdKAFr6JiKYxuDUcY5+v\n Duj9OHCYuLJcc3ZmLqxX9EoJTMQOTKzK7rOzz3nN4QW9bj19r8NdXUJFvmkbJsosVWUj\n E3hg==",
        "Date": "Tue, 21 Jul 2020 11:22:39 -0700",
        "Content-Transfer-Encoding": "8bit",
        "X-Received": "by 2002:a17:90a:32cb:: with SMTP id\n l69mr5462059pjb.205.1595355779305;\n Tue, 21 Jul 2020 11:22:59 -0700 (PDT)",
        "To": "dev@dpdk.org",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "In-Reply-To": "<20200721182242.5366-1-stephen@networkplumber.org>",
        "Cc": "Hemant Agrawal <hemant.agrawal@nxp.com>,\n Stephen Hemminger <stephen@networkplumber.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200721182242.5366-6-stephen@networkplumber.org>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "From: Hemant Agrawal <hemant.agrawal@nxp.com>\n\nEnhance the mempool details to also print the ops index and name\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n app/proc-info/main.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 7c1276b7fbc1..f3f83c0cea37 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -1219,7 +1219,10 @@ show_mempool(char *name)\n \tif (name != NULL) {\n \t\tstruct rte_mempool *ptr = rte_mempool_lookup(name);\n \t\tif (ptr != NULL) {\n+\t\t\tstruct rte_mempool_ops *ops;\n+\n \t\t\tflags = ptr->flags;\n+\t\t\tops = rte_mempool_get_ops(ptr->ops_index);\n \t\t\tprintf(\"  - Name: %s on socket %d\\n\"\n \t\t\t\t\"  - flags:\\n\"\n \t\t\t\t\"\\t  -- No spread (%c)\\n\"\n@@ -1249,6 +1252,8 @@ show_mempool(char *name)\n \t\t\tprintf(\"  - Count: avail (%u), in use (%u)\\n\",\n \t\t\t\trte_mempool_avail_count(ptr),\n \t\t\t\trte_mempool_in_use_count(ptr));\n+\t\t\tprintf(\"  - ops_index %d ops_name %s\\n\",\n+\t\t\t\tptr->ops_index, ops ? ops->name : \"NA\");\n \n \t\t\treturn;\n \t\t}\n",
    "prefixes": [
        "v4",
        "5/8"
    ]
}