Show a patch.

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

{
    "id": 73335,
    "url": "https://patches.dpdk.org/api/patches/73335/?format=api",
    "web_url": "https://patches.dpdk.org/patch/73335/",
    "project": {
        "id": 1,
        "url": "https://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"
    },
    "msgid": "<20200706203743.29416-23-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:36",
    "name": "[v6,22/25] example/performance*: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d9cf237cee53cb5641ed1fb5c03f17f5cea5006a",
    "submitter": {
        "id": 783,
        "url": "https://patches.dpdk.org/api/people/783/?format=api",
        "name": "Ivan Dyukov",
        "email": "i.dyukov@samsung.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73335/mbox/",
    "series": [
        {
            "id": 10825,
            "url": "https://patches.dpdk.org/api/series/10825/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10825",
            "date": "2020-07-06T20:37:14",
            "name": "ethdev: allow unknown link speed",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/10825/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73335/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73335/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",
        "X-RootMTR": "20200706203851eucas1p1aeb631663772fc95d1fa11bb1873dbe7",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "Reply-To": "i.dyukov@samsung.com",
        "X-AuditID": "cbfec7f5-38bff700000018ae-53-5f038bdc5e17",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<20200706203743.29416-1-i.dyukov@samsung.com>",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203853euoutp018674466abcef1a9bb4d72536e328ec90~fRFbgwZ631241012410euoutp01F",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203851eucas1p1aeb631663772fc95d1fa11bb1873dbe7@eucas1p1.samsung.com>",
        "X-EPHeader": "CA",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "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 E790BA00C5;\n\tMon,  6 Jul 2020 22:41:23 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 007FE1DDC1;\n\tMon,  6 Jul 2020 22:39:01 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 40BCF1DD84\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:53 +0200 (CEST)",
            "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203853euoutp018674466abcef1a9bb4d72536e328ec90~fRFbgwZ631241012410euoutp01F;\n Mon,  6 Jul 2020 20:38:53 +0000 (GMT)",
            "from eusmges3new.samsung.com (unknown [203.254.199.245]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203852eucas1p2301d29759a202a8f824540ef8b9bf1d0~fRFbHYuRx2121221212eucas1p2-;\n Mon,  6 Jul 2020 20:38:52 +0000 (GMT)",
            "from eucas1p1.samsung.com ( [182.198.249.206]) by\n eusmges3new.samsung.com (EUCPMTA) with SMTP id 91.D6.06318.CDB830F5; Mon,  6\n Jul 2020 21:38:52 +0100 (BST)",
            "from eusmtrp2.samsung.com (unknown [182.198.249.139]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203851eucas1p1aeb631663772fc95d1fa11bb1873dbe7~fRFaheo8o2656026560eucas1p1I;\n Mon,  6 Jul 2020 20:38:51 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203851eusmtrp2ef39420c24985f7b7f6fa350e76158a1~fRFagtDy40640206402eusmtrp2_;\n Mon,  6 Jul 2020 20:38:51 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id F6.8E.06017.BDB830F5; Mon,  6\n Jul 2020 21:38:51 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203850eusmtip1e312f2420c6eca14abe8b24eabf2b843~fRFYuOZTj1560515605eusmtip1I;\n Mon,  6 Jul 2020 20:38:49 +0000 (GMT)"
        ],
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Subject": "[dpdk-dev] [PATCH v6 22/25] example/performance*: new link status\n\tprint format",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailer": "git-send-email 2.17.1",
        "CMS-TYPE": "201P",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067933;\n bh=XtbX4XCFxTlmDt9RDrOth1o/sdpob+sTnBAjVCFknHA=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=lcJrFNGOmTH9NjhoOvEHna7pm4sws/W9YHYr6STMl2y/cXfJ0P6Pyq0njEWaVNjHj\n LX65AGSXeaX03f03z6wYpWlO/YdcLKK4gjW/p+BiGf6opcJKSZ47h6+gT/JcdtOYaT\n 2HKRO0NaSeeOAmdl6+89afXoWCH0IIQ+bKvZgWZU=",
        "Date": "Mon,  6 Jul 2020 23:37:36 +0300",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "To": "dev@dpdk.org, i.dyukov@samsung.com, v.kuramshin@samsung.com,\n thomas@monjalon.net, david.marchand@redhat.com, ferruh.yigit@intel.com,\n arybchenko@solarflare.com, wei.zhao1@intel.com, jia.guo@intel.com,\n beilei.xing@intel.com, qiming.yang@intel.com, wenzhuo.lu@intel.com,\n mb@smartsharesystems.com, stephen@networkplumber.org,\n nicolas.chautru@intel.com, bruce.richardson@intel.com,\n konstantin.ananyev@intel.com, cristian.dumitrescu@intel.com,\n radu.nicolau@intel.com, akhil.goyal@nxp.com, declan.doherty@intel.com,\n skori@marvell.com, pbhagavatula@marvell.com, jerinj@marvell.com,\n kirankumark@marvell.com, david.hunt@intel.com, anatoly.burakov@intel.com,\n xiaoyun.li@intel.com, jingjing.wu@intel.com, john.mcnamara@intel.com,\n jasvinder.singh@intel.com, byron.marohn@intel.com, yipeng1.wang@intel.com",
        "Errors-To": "dev-bounces@dpdk.org",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "X-CMS-MailID": "20200706203851eucas1p1aeb631663772fc95d1fa11bb1873dbe7",
        "X-BeenThere": "dev@dpdk.org",
        "X-Msg-Generator": "CA",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA0WSb0wTdxjH89xd745q9VaNPuCm0sRkMxG2aeITwkAXYy7GbHu1ROKG3T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5Kn1XzU\n TxxQEmKMVrUON4jaf0YdVtgFAwAA"
        ],
        "Message-Id": "<20200706203743.29416-23-i.dyukov@samsung.com>",
        "X-CMS-RootMailID": "20200706203851eucas1p1aeb631663772fc95d1fa11bb1873dbe7",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Add usage of rte_eth_link_strf function to example\napplications\n\nSigned-off-by: Ivan Dyukov <i.dyukov@samsung.com>\n---\n examples/performance-thread/l3fwd-thread/main.c | 12 ++++--------\n 1 file changed, 4 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c\nindex 84c1d7b3a..bd10014a0 100644\n--- a/examples/performance-thread/l3fwd-thread/main.c\n+++ b/examples/performance-thread/l3fwd-thread/main.c\n@@ -3433,6 +3433,7 @@ check_all_ports_link_status(uint32_t port_mask)\n \tuint8_t count, all_ports_up, print_flag = 0;\n \tstruct rte_eth_link link;\n \tint ret;\n+\tchar link_status_text[60];\n \n \tprintf(\"\\nChecking link status\");\n \tfflush(stdout);\n@@ -3452,14 +3453,9 @@ check_all_ports_link_status(uint32_t port_mask)\n \t\t\t}\n \t\t\t/* print link status if flag set */\n \t\t\tif (print_flag == 1) {\n-\t\t\t\tif (link.link_status)\n-\t\t\t\t\tprintf(\n-\t\t\t\t\t\"Port%d Link Up. Speed %u Mbps - %s\\n\",\n-\t\t\t\t\t\tportid, link.link_speed,\n-\t\t\t\t(link.link_duplex == ETH_LINK_FULL_DUPLEX) ?\n-\t\t\t\t\t(\"full-duplex\") : (\"half-duplex\"));\n-\t\t\t\telse\n-\t\t\t\t\tprintf(\"Port %d Link Down\\n\", portid);\n+\t\t\t\trte_eth_link_strf(link_status_text, 60, NULL,\n+\t\t\t\t\t\t    &link);\n+\t\t\t\tprintf(\"Port %d %s\", portid, link_status_text);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t/* clear all_ports_up flag if any link down */\n",
    "prefixes": [
        "v6",
        "22/25"
    ]
}