Show a patch.

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

{
    "id": 73330,
    "url": "https://patches.dpdk.org/api/patches/73330/?format=api",
    "web_url": "https://patches.dpdk.org/patch/73330/",
    "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-18-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:31",
    "name": "[v6,17/25] examples/l2fwd: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "60c9492a7aa6705ed75efb36b67426b37f1804c8",
    "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/73330/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/73330/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73330/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": "20200706203838eucas1p25a3b38dc4c1a04f7c15f76f190dff8a2",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "Reply-To": "i.dyukov@samsung.com",
        "X-AuditID": "cbfec7f4-677ff7000000176d-d2-5f038bce087a",
        "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 mailout2.w1.samsung.com\n 20200706203839euoutp023ee92059c6930e376cf27389c76f8b5d~fRFPIsp0R2313123131euoutp02r",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203838eucas1p25a3b38dc4c1a04f7c15f76f190dff8a2@eucas1p2.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 9B809A00C5;\n\tMon,  6 Jul 2020 22:40:39 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 231041DDAB;\n\tMon,  6 Jul 2020 22:38:41 +0200 (CEST)",
            "from mailout2.w1.samsung.com (mailout2.w1.samsung.com\n [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id E6E101DD76\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:39 +0200 (CEST)",
            "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203839euoutp023ee92059c6930e376cf27389c76f8b5d~fRFPIsp0R2313123131euoutp02r;\n Mon,  6 Jul 2020 20:38:39 +0000 (GMT)",
            "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203838eucas1p168514718b1738aa6305faea92db718b4~fRFOQZXkk2654826548eucas1p1A;\n Mon,  6 Jul 2020 20:38:38 +0000 (GMT)",
            "from eucas1p1.samsung.com ( [182.198.249.206]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 5D.C9.05997.ECB830F5; Mon,  6\n Jul 2020 21:38:38 +0100 (BST)",
            "from eusmtrp1.samsung.com (unknown [182.198.249.138]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203838eucas1p25a3b38dc4c1a04f7c15f76f190dff8a2~fRFNmlRWj2126821268eucas1p2D;\n Mon,  6 Jul 2020 20:38:38 +0000 (GMT)",
            "from eusmgms1.samsung.com (unknown [182.198.249.179]) by\n eusmtrp1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203838eusmtrp16c59d13b5ed7031f0441247d0509a7d6~fRFNlhGht2965829658eusmtrp1q;\n Mon,  6 Jul 2020 20:38:38 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms1.samsung.com (EUCPMTA) with SMTP id E0.EF.06314.DCB830F5; Mon,  6\n Jul 2020 21:38:38 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203836eusmtip17d8d643f52e6e9bfb0b4c269b649f559~fRFLyIxJC1560515605eusmtip1E;\n Mon,  6 Jul 2020 20:38:36 +0000 (GMT)"
        ],
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Subject": "[dpdk-dev] [PATCH v6 17/25] examples/l2fwd: new link status print\n\tformat",
        "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=1594067919;\n bh=mj3hE/gu7NzVbUKqiHTNl/YjUhTA6ayvrigfQL+Dyrc=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=Qi6ctS98RMWrv7EdEw1Izijvm7bf6R6nBzYJmpAW6uzyb58sryPWeOW6Hc9zQX3LU\n wsorlm8mVVjmLitMXkKLA4YAI1UmY9rU/8UVY9vua8x83D4dIr837H5ugqusSl7T6l\n WRow/LnmWcljXQCt/69xMxABGpUr2BHisgeoDUXc=",
        "Date": "Mon,  6 Jul 2020 23:37:31 +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": "20200706203838eucas1p25a3b38dc4c1a04f7c15f76f190dff8a2",
        "X-BeenThere": "dev@dpdk.org",
        "X-Msg-Generator": "CA",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA0WSaUxTaRSG892dxpprbeIZxrg0MVHjNuqYM6gjGmPuxIzLHxONU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KkpK1/OLSbOk/wsicQc1BgMAAA=="
        ],
        "Message-Id": "<20200706203743.29416-18-i.dyukov@samsung.com>",
        "X-CMS-RootMailID": "20200706203838eucas1p25a3b38dc4c1a04f7c15f76f190dff8a2",
        "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/l2fwd/main.c | 12 ++++--------\n 1 file changed, 4 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c\nindex e04c601b5..9d5f7307e 100644\n--- a/examples/l2fwd/main.c\n+++ b/examples/l2fwd/main.c\n@@ -571,6 +571,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@@ -594,14 +595,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",
        "17/25"
    ]
}