Show a patch.

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

{
    "id": 74588,
    "url": "https://patches.dpdk.org/api/patches/74588/",
    "web_url": "https://patches.dpdk.org/patch/74588/",
    "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-3-stephen@networkplumber.org>",
    "date": "2020-07-21T18:22:36",
    "name": "[v4,2/8] app/proc-info: eliminate useless borders",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7f3f83a0df40e79128db1de1aa0c308e1408c58b",
    "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/74588/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/74588/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74588/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": "AOAM530gjbbAq0h+OvErUv4+3KmwH+hDai6Zd/rfRBMlhxOs6vFy3P3f\n 0ys2pqQOuxQRI+KOExtbpD7RVrYMnorIBg==",
        "X-Google-Smtp-Source": "\n ABdhPJxnLqLX3FJnBzk+kceYgKdBWzNQvrNdgBKrAv3FhxQCf1BKyX+gipeEJ0uu9ELEPxGg++upjg==",
        "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 2/8] app/proc-info: eliminate useless borders",
        "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 F0419A0526;\n\tTue, 21 Jul 2020 20:23:10 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7EC811C05C;\n\tTue, 21 Jul 2020 20:22:58 +0200 (CEST)",
            "from mail-pl1-f195.google.com (mail-pl1-f195.google.com\n [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id BB5C01C031\n for <dev@dpdk.org>; Tue, 21 Jul 2020 20:22:55 +0200 (CEST)",
            "by mail-pl1-f195.google.com with SMTP id p1so10624794pls.4\n for <dev@dpdk.org>; Tue, 21 Jul 2020 11:22:55 -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.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Jul 2020 11:22:53 -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=1iSNtlfJy6gteAYsSYrqpxFpYkOwC+ZDBEYUD2FQ/IY=;\n b=MVDx46fSDFWKklVwzCFg60l/zUmO1JFGc9sxlzzX9ggg71mh+JQFfCF0pIFwdSZQJB\n 6/0HWu+OeIr8KlvsnZLMcms1nwK4mH54gqnzkDCXuv4qK2Sjns1u/4kija+k7YvWE6cB\n akBMP4SoMlHaJ/PmmXN7W/0qlVlIyeSbSiQjVN+6T3Y1vAto8rGnZAvmmYpbzbHM4Er8\n o1PZZvT3nTnAfH2NTvNFs4xpzdNKNPkFi19z0RwxXhXUeyt4jTE/lPpadHjuM4jyVFRQ\n 5F6oQkAd554e1d1KrXoCCw1yJoVae2O89rFP5Bg0BlK7HOyuryyJGrOuDYcQdmwDr3WT\n exJg==",
        "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=1iSNtlfJy6gteAYsSYrqpxFpYkOwC+ZDBEYUD2FQ/IY=;\n b=HwW8Tms4owyW7p0xl9abIL9TJcL4Wy2Hz8QJl2IYQnHBGJZMfvsB5+zsx1ERk+WIAr\n EJRL4wPkj3I+ANm8i/VWHkHOx08jdTnuBq4/QwLeWknBr5c504kLJ3OyOqPiVC1LA6Vo\n vU2tUXCpXdsKl78WMs3QQVp4fKcgU54OfvmSDvW+4grWAEv7dGVW5hrqXZALxFKHTr7R\n AzIWPjpAn6A9JwkHxqk9X58EuIGPln3BcfgBecIRUNYP3dELdlu0pjeZHBa0bPMOKvq7\n NmSVC9paS3nMY8WKLuCTUlCykmy0OpyxF5iugIhZ1jTCj0FfRN71D6KpmBOGRpvfDzXl\n Rpmg==",
        "Date": "Tue, 21 Jul 2020 11:22:36 -0700",
        "Content-Transfer-Encoding": "8bit",
        "X-Received": "by 2002:a17:90a:f996:: with SMTP id\n cq22mr6655232pjb.208.1595355774418;\n Tue, 21 Jul 2020 11:22:54 -0700 (PDT)",
        "To": "dev@dpdk.org",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "In-Reply-To": "<20200721182242.5366-1-stephen@networkplumber.org>",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Hemant Agrawal <hemant.agrawal@nxp.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200721182242.5366-3-stephen@networkplumber.org>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Printing extra borders does not improve readability, and is just\nunnecessary. Putting TSC hz in header also makes no sense here.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\nAcked-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n app/proc-info/main.c | 35 +++++++----------------------------\n 1 file changed, 7 insertions(+), 28 deletions(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 69e3000616c0..049818bad51f 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -660,8 +660,7 @@ show_port(void)\n \tuint16_t i = 0;\n \tint ret = 0, j, k;\n \n-\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - Port PMD %\"PRIu64,\n-\t\t\trte_get_tsc_hz());\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - Port PMD \");\n \tSTATS_BDR_STR(10, bdr_str);\n \n \tRTE_ETH_FOREACH_DEV(i) {\n@@ -673,7 +672,7 @@ show_port(void)\n \n \t\tmemset(&rss_conf, 0, sizeof(rss_conf));\n \n-\t\tsnprintf(bdr_str, MAX_STRING_LEN, \" Port (%u)\", i);\n+\t\tsnprintf(bdr_str, MAX_STRING_LEN, \" Port %u \", i);\n \t\tSTATS_BDR_STR(5, bdr_str);\n \t\tprintf(\"  - generic config\\n\");\n \n@@ -754,8 +753,6 @@ show_port(void)\n \t\t}\n #endif\n \t}\n-\n-\tSTATS_BDR_STR(50, \"\");\n }\n \n static void\n@@ -841,8 +838,7 @@ show_tm(void)\n \tunsigned int j, k;\n \tuint16_t i = 0;\n \n-\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - TM PMD %\"PRIu64,\n-\t\t\trte_get_tsc_hz());\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - TM PMD \");\n \tSTATS_BDR_STR(10, bdr_str);\n \n \tRTE_ETH_FOREACH_DEV(i) {\n@@ -1038,8 +1034,6 @@ show_tm(void)\n \t\t\t\tstats.leaf.n_bytes_dropped[RTE_COLOR_RED]);\n \t\t}\n \t}\n-\n-\tSTATS_BDR_STR(50, \"\");\n }\n \n static void\n@@ -1085,8 +1079,7 @@ show_crypto(void)\n {\n \tuint8_t crypto_dev_count = rte_cryptodev_count(), i;\n \n-\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - CRYPTO PMD %\"PRIu64,\n-\t\t\trte_get_tsc_hz());\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - CRYPTO PMD \");\n \tSTATS_BDR_STR(10, bdr_str);\n \n \tfor (i = 0; i < crypto_dev_count; i++) {\n@@ -1121,15 +1114,12 @@ show_crypto(void)\n \t\t\t\tstats.dequeue_err_count);\n \t\t}\n \t}\n-\n-\tSTATS_BDR_STR(50, \"\");\n }\n \n static void\n show_ring(char *name)\n {\n-\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - RING %\"PRIu64,\n-\t\t\trte_get_tsc_hz());\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - RING \");\n \tSTATS_BDR_STR(10, bdr_str);\n \n \tif (name != NULL) {\n@@ -1160,7 +1150,6 @@ show_ring(char *name)\n \t}\n \n \trte_ring_list_dump(stdout);\n-\tSTATS_BDR_STR(50, \"\");\n }\n \n static void\n@@ -1168,8 +1157,7 @@ show_mempool(char *name)\n {\n \tuint64_t flags = 0;\n \n-\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - MEMPOOL %\"PRIu64,\n-\t\t\trte_get_tsc_hz());\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - MEMPOOL \");\n \tSTATS_BDR_STR(10, bdr_str);\n \n \tif (name != NULL) {\n@@ -1206,13 +1194,11 @@ show_mempool(char *name)\n \t\t\t\trte_mempool_avail_count(ptr),\n \t\t\t\trte_mempool_in_use_count(ptr));\n \n-\t\t\tSTATS_BDR_STR(50, \"\");\n \t\t\treturn;\n \t\t}\n \t}\n \n \trte_mempool_list_dump(stdout);\n-\tSTATS_BDR_STR(50, \"\");\n }\n \n static void\n@@ -1230,8 +1216,7 @@ mempool_itr_obj(struct rte_mempool *mp, void *opaque,\n static void\n iter_mempool(char *name)\n {\n-\tsnprintf(bdr_str, MAX_STRING_LEN, \" iter - MEMPOOL %\"PRIu64,\n-\t\t\trte_get_tsc_hz());\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" iter - MEMPOOL \");\n \tSTATS_BDR_STR(10, bdr_str);\n \n \tif (name != NULL) {\n@@ -1241,12 +1226,9 @@ iter_mempool(char *name)\n \t\t\tuint32_t ret = rte_mempool_obj_iter(ptr,\n \t\t\t\t\tmempool_itr_obj, NULL);\n \t\t\tprintf(\"\\n  - iterated %u objects\\n\", ret);\n-\t\t\tSTATS_BDR_STR(50, \"\");\n \t\t\treturn;\n \t\t}\n \t}\n-\n-\tSTATS_BDR_STR(50, \"\");\n }\n \n int\n@@ -1347,8 +1329,5 @@ main(int argc, char **argv)\n \tif (ret)\n \t\tprintf(\"Error from rte_eal_cleanup(), %d\\n\", ret);\n \n-\tstrlcpy(bdr_str, \" \", MAX_STRING_LEN);\n-\tSTATS_BDR_STR(50, bdr_str);\n-\n \treturn 0;\n }\n",
    "prefixes": [
        "v4",
        "2/8"
    ]
}