Show a patch.

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

{
    "id": 73338,
    "url": "https://patches.dpdk.org/api/patches/73338/",
    "web_url": "https://patches.dpdk.org/patch/73338/",
    "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-26-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:39",
    "name": "[v6,25/25] examples/vm_power_*: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e1c2772a03b84ca541e3fd950e5cbe889e297c5c",
    "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/73338/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/73338/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73338/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": "cbfec7f5-38bff700000018ae-5d-5f038be505a1",
        "X-Mailer": "git-send-email 2.17.1",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203901euoutp01627112f026ea05970bbd9cf740f48cef~fRFjsWg1W0553305533euoutp01n",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067941;\n bh=U2zVf/WfC+GxbbAndLEN5cAyOf8BWxrHjaueCQ0L+Sc=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=NnsszgiDXChJIn5LrXb4Fp/8Io1SQlcf/3ylZ4JmQUzTk7+UBz6gMG5EMHSDw8IYC\n 7efxufJOScbyY4T86n21BTE3uuTfYaGWfRMIA/ZWjBMazg9NEYackCueIwEeCitDA5\n QGyHfOctvzG+Bebo0s4xnAoFDwKO9attOqHpV1PY=",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-RootMTR": "20200706203900eucas1p1da635a7b8512d7c087ea0def6de3223d",
        "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 14F62A00C5;\n\tMon,  6 Jul 2020 22:41:51 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EE23F1DDF5;\n\tMon,  6 Jul 2020 22:39:09 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 0681D1DDE3\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:39:02 +0200 (CEST)",
            "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203901euoutp01627112f026ea05970bbd9cf740f48cef~fRFjsWg1W0553305533euoutp01n;\n Mon,  6 Jul 2020 20:39:01 +0000 (GMT)",
            "from eusmges3new.samsung.com (unknown [203.254.199.245]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203901eucas1p1f311bdef850c6435460d7b47bc0dadb1~fRFjgFvhB0771107711eucas1p14;\n Mon,  6 Jul 2020 20:39:01 +0000 (GMT)",
            "from eucas1p2.samsung.com ( [182.198.249.207]) by\n eusmges3new.samsung.com (EUCPMTA) with SMTP id D5.D6.06318.5EB830F5; Mon,  6\n Jul 2020 21:39:01 +0100 (BST)",
            "from eusmtrp1.samsung.com (unknown [182.198.249.138]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203900eucas1p1da635a7b8512d7c087ea0def6de3223d~fRFiR4HCr2656126561eucas1p1H;\n Mon,  6 Jul 2020 20:39:00 +0000 (GMT)",
            "from eusmgms1.samsung.com (unknown [182.198.249.179]) by\n eusmtrp1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203900eusmtrp162391a1da290811395c319a5109fb92a~fRFiRG_jg2965829658eusmtrp1y;\n Mon,  6 Jul 2020 20:39:00 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms1.samsung.com (EUCPMTA) with SMTP id 28.EF.06314.4EB830F5; Mon,  6\n Jul 2020 21:39:00 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203858eusmtip1235043423b66ee7e8e507fba87bb3302~fRFgby2sP1560515605eusmtip1J;\n Mon,  6 Jul 2020 20:38:58 +0000 (GMT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 25/25] examples/vm_power_*: 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 H4sIAAAAAAAAA0WSbUxTdxTGOffe3ntp6HKtJJygYmx0bnODKXOeGDcmM+YmfvHL5mIysZMb\n dFDUFvAtJqjIWGFMwGHkTQYaatmGL2iLinFNpLriKiS8GBnrFNMhiFpAoYMx6q3Zt+f5Pc8/\n 5+TkL7L6Mj5W3JGZpZgzjRkGXstdbpv0vveokE153303jpraa4Ae9Nez5Dv+B0+Fz/IY6rUn\n 0TVHlYZK/8xlqLj0OUMOm5WnYd9hjkYCDob6Wj0CVXQeFijg8gv0nbcSyD/1mKWTtaNA3ppL\n Gpr89QpPT6fqOCoOdgF933wLyF30nKPjLU6gfKtEz842CFTfF0cB3y2OPPcuCvTTeAdLl9qn\n gUrcTUB38mc0nyySg7VnNHL9tUFGLvuxg5Xb7pULctHtGkY+P+Jk5KfXu3i5uNkO8m8PClm5\n cWCC36jdrF2TqmTsyFHMCR9v1W4/5yiDXUPavYMzk2wu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X1oJbqpjgOZymmsQ93Q8i+RqXT/ofZIo5TaD\n 3mTk1yTqBeN2RbQKgpWqMFAGbwlTqkLUMeHBoYpNEdtO8ClJp3jDpog4ZWJDSz5K/SQ5M/ln\n jkxHdrEZeYkxuwV/uJTLeFjGViLcZPU2I7G7jvEnF/nP4oMXXphpM5K4LbMI95fn0B6BZjdg\n Z2YJ4RF82dc0fn75POURfNhIbC60ijxMsQH41lg14WEpG45HB3sXp/rh2oZHpGeZl7te/Fju\n QRmbhF99W4yzGr+8843IRctL0ZIa5MubBG2CVlApBY1WMOkSlPF67X3kPviDJ3NNrai/8aAd\n sWKkWCbNpMlYmUhzSjirtSMsJhW+0l09zmMy6QnN2XO8QR9rMKXwgh2FuuPlkfIV8Xr3++iM\n sapQlRrCVOoQdchWUKyUZrK2ozI2QWPkT/J8Km/430eIveTpaO34kUjXT+vx6i6tafvYuzZp\n UbG38sDAaakjdbbsRvjyNC9ToHW6NjKh2WIpcqzvjnl2ZcCyNMqmWSU3BWavqHemjeg2BqCM\n IL8X6ovJtugp296IAn/11aKVcZLk3VPTjCuRCzzWvUvG7u/Aq+rmresOP9zzvq4j7LxPZ7z/\n IUZBCYka1UbSIGj+AqZrbeQGAwAA"
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "Date": "Mon,  6 Jul 2020 23:37:39 +0300",
        "Precedence": "list",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "CMS-TYPE": "201P",
        "X-CMS-MailID": "20200706203900eucas1p1da635a7b8512d7c087ea0def6de3223d",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203900eucas1p1da635a7b8512d7c087ea0def6de3223d@eucas1p1.samsung.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-CMS-RootMailID": "20200706203900eucas1p1da635a7b8512d7c087ea0def6de3223d",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200706203743.29416-26-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/vm_power_manager/main.c | 14 +++++---------\n 1 file changed, 5 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c\nindex 273bfec29..05aec1aad 100644\n--- a/examples/vm_power_manager/main.c\n+++ b/examples/vm_power_manager/main.c\n@@ -244,6 +244,7 @@ check_all_ports_link_status(uint32_t port_mask)\n \tuint16_t portid, 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@@ -267,15 +268,10 @@ 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(\"Port %d Link Up - speed %u \"\n-\t\t\t\t\t\t\"Mbps - %s\\n\", (uint16_t)portid,\n-\t\t\t\t\t\t(unsigned int)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\",\n-\t\t\t\t\t\t(uint16_t)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,\n+\t\t\t\t       link_status_text);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t       /* clear all_ports_up flag if any link down */\n",
    "prefixes": [
        "v6",
        "25/25"
    ]
}