Show a patch.

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

{
    "id": 73337,
    "url": "https://patches.dpdk.org/api/patches/73337/",
    "web_url": "https://patches.dpdk.org/patch/73337/",
    "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": "<20200706203743.29416-25-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:38",
    "name": "[v6,24/25] examples/server_nod*: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "baac2860cbe9d41c2440bf2212d93ee24f0d5e6e",
    "submitter": {
        "id": 783,
        "url": "https://patches.dpdk.org/api/people/783/",
        "name": "Ivan Dyukov",
        "email": "i.dyukov@samsung.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73337/mbox/",
    "series": [
        {
            "id": 10825,
            "url": "https://patches.dpdk.org/api/series/10825/",
            "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/73337/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73337/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<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",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "X-AuditID": "cbfec7f4-677ff7000000176d-ea-5f038be10c77",
        "X-Mailer": "git-send-email 2.17.1",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203858euoutp01b2da319a54a5d5dd9792e7c597d3c8d8~fRFgt63P53113131131euoutp01c",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067938;\n bh=WQh0/xZ8D/8NSNS0F/gifzw1wCeRoFQ4rQBL4QRJi0A=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=XnATxjCQPC6BWtZfYVJ1GOEa8EEQxQIsuWd8Pcm2EOJuTZJTUUOPvev7oWMmrDldG\n ToxS8+sAlJKtO0gEYNagQ+phMcYhQAXX9trgrfVZv8W3FUq7KAlYu+wWS5uRk/mg1s\n hEw+uGu1hfQQirXmoLAj102gSnyoQLQblF8nH0XI=",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-RootMTR": "20200706203857eucas1p1b97d37ca61cda22ff7e93e08e1e01fbe",
        "X-EPHeader": "CA",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 37C12A00C5;\n\tMon,  6 Jul 2020 22:41:42 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7F8DD1DDEF;\n\tMon,  6 Jul 2020 22:39:07 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id C45EE1DD65\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:58 +0200 (CEST)",
            "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203858euoutp01b2da319a54a5d5dd9792e7c597d3c8d8~fRFgt63P53113131131euoutp01c;\n Mon,  6 Jul 2020 20:38:58 +0000 (GMT)",
            "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203857eucas1p1bae3f1c9f9b96f4a32ddd4ffe379be9a~fRFf3grll2654826548eucas1p1G;\n Mon,  6 Jul 2020 20:38:57 +0000 (GMT)",
            "from eucas1p2.samsung.com ( [182.198.249.207]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 86.D9.05997.1EB830F5; Mon,  6\n Jul 2020 21:38:57 +0100 (BST)",
            "from eusmtrp2.samsung.com (unknown [182.198.249.139]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203857eucas1p1b97d37ca61cda22ff7e93e08e1e01fbe~fRFffbySN2656026560eucas1p1K;\n Mon,  6 Jul 2020 20:38:57 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203857eusmtrp236f696e6e99ec0ad4e2ca4d48218a66d~fRFfeX3n80640206402eusmtrp2-;\n Mon,  6 Jul 2020 20:38:57 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id 19.8E.06017.1EB830F5; Mon,  6\n Jul 2020 21:38:57 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203855eusmtip1f5dbb9097b7843e04c59f7fa4993d122~fRFdvIWaz1791017910eusmtip1u;\n Mon,  6 Jul 2020 20:38:55 +0000 (GMT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 24/25] examples/server_nod*: new link status\n\tprint format",
        "In-Reply-To": "<20200706203743.29416-1-i.dyukov@samsung.com>",
        "X-Msg-Generator": "CA",
        "Reply-To": "i.dyukov@samsung.com",
        "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>",
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA0WSa0xTZxjH85733OioO1Y3H5nRWYPOy2TMJXumy5yGsfNBExP8oFsEOz0B\n N6imB5xoog1qV0CwgNHguFTwimYMLNeoqRiorCBIhthEXKcmTN2oFhqUoYxyMPv2e37P5Z+8\n eUVqKOSjxB3mdMViNqUaeR1b3/ay68M/c2nSR77exVjdUUbwwf1Kiv5j/TzmPjvE4N2q1Xil\n oYTDwj+sDOYXPmew4XwOj3/7s1gcDDYweO+qV8CTPVkCBlsGBMzr+pngwNgTisXOIYJdZXUc\n vrzezGNgrILF/NFegkddNwl6jjxn8VhTI0FbjoTPLpwTsPLeXAz6b7Lo9V0W8FLoNsW6jlcE\n CzzVBDtt49yX8+VR5xlOrrzymJGLTt2mcpvvuCAfaS9j5JrBRkYOXOvl5XxXFZF/e5BL5YuP\n XvAbdN/oPt+upO7YrVh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\n kp0xFovYwtrvGJtT0I6zTV1XxezF1/kYWz5ajbFjdZ0kqzeVIPZNfxbOlg7+JHe57JeH8ZpE\n LbciTiNow2UHFBAgV4SAPGBdiFwRGHwoNCBI5r8h7BiXEJ/E8f4bjsjjmhomRSfPLzj1bm5M\n nIL6KB1yphh6HWNsq8B1yIWS0sWIeTFnJXSIsgOGGR7E5zMezOwHHTmfsSKmYrCKdACS9mUs\n mfmYA3jSX0jmfcY5wgE86B1Mz9MpzKEJ2ocZKLD+8yV0KDOaekU033U5U/qoAXcMc7b7t196\n OaSUjmc+28SOhJT2Zj7esWFXkJsROZUgTy5RUMWqhAC5oFQJiepY+VGNqgLZL/6kadpUjXSj\n kWZEU0jmKskk8WipSJkkJKvMiKFwmadkc6vlsFRyTJl8muM10XxiAieYUZB9PQPutfCoxv4/\n am20IkgRDCGK4MDgwPUgWyzJpBsPSulYpZY7wXEnOf5/HUY5e6UgQ23Erus5W97GvHAp7djW\n bfjVu6JeYbjjVhORXukeFqU/27hl4taeIptvpbwl3du6OjKsIO3ZPqM+58D1DD7Es3d3KNm9\n bHeqx4c0wcm/KNyU5Lrzso+7+xK/VXnqJv21pV3h2XVRA+Vbz/A3vsQumpmqGa7PjTk+ErXG\n RsD2jIK9MkKIUyr8cF5Q/gVz6HcsBwMAAA=="
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "Date": "Mon,  6 Jul 2020 23:37:38 +0300",
        "Precedence": "list",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "CMS-TYPE": "201P",
        "X-CMS-MailID": "20200706203857eucas1p1b97d37ca61cda22ff7e93e08e1e01fbe",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203857eucas1p1b97d37ca61cda22ff7e93e08e1e01fbe@eucas1p1.samsung.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-CMS-RootMailID": "20200706203857eucas1p1b97d37ca61cda22ff7e93e08e1e01fbe",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200706203743.29416-25-i.dyukov@samsung.com>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "X-Mailman-Version": "2.1.15"
    },
    "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/server_node_efd/server/init.c | 15 +++++----------\n 1 file changed, 5 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/examples/server_node_efd/server/init.c b/examples/server_node_efd/server/init.c\nindex 378a74fa5..00224850e 100644\n--- a/examples/server_node_efd/server/init.c\n+++ b/examples/server_node_efd/server/init.c\n@@ -247,6 +247,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)\n \tuint16_t portid;\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@@ -266,16 +267,10 @@ check_all_ports_link_status(uint16_t port_num, 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\tinfo->id[portid],\n-\t\t\t\t\t\tlink.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\",\n-\t\t\t\t\t\tinfo->id[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\", info->id[portid],\n+\t\t\t\t       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",
        "24/25"
    ]
}