Show a patch.

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

{
    "id": 73332,
    "url": "https://patches.dpdk.org/api/patches/73332/",
    "web_url": "https://patches.dpdk.org/patch/73332/",
    "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-20-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:33",
    "name": "[v6,19/25] examples/l3fwd-power: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8fe92f22a72bdd5d2f3215f769a7435b1f3620bf",
    "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/73332/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/73332/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73332/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "In-Reply-To": "<20200706203743.29416-1-i.dyukov@samsung.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.17.1",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9C0AFA00C5;\n\tMon,  6 Jul 2020 22:40:59 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D7BDF1DDBA;\n\tMon,  6 Jul 2020 22:38:50 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 5ABC61DD68\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:46 +0200 (CEST)",
            "from eucas1p1.samsung.com (unknown [182.198.249.206])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203846euoutp01c88580e41129cc742b45556a14841fbd~fRFVIR-6j1241012410euoutp01E;\n Mon,  6 Jul 2020 20:38:46 +0000 (GMT)",
            "from eusmges3new.samsung.com (unknown [203.254.199.245]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203845eucas1p24c3a55a9bc8eac98170f2c2ec1159daf~fRFUCQ4471728517285eucas1p2C;\n Mon,  6 Jul 2020 20:38:45 +0000 (GMT)",
            "from eucas1p2.samsung.com ( [182.198.249.207]) by\n eusmges3new.samsung.com (EUCPMTA) with SMTP id 3F.C6.06318.4DB830F5; Mon,  6\n Jul 2020 21:38:44 +0100 (BST)",
            "from eusmtrp1.samsung.com (unknown [182.198.249.138]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203843eucas1p2207dc76350211e49c4b81af097499c8a~fRFS6J0VV2126821268eucas1p2E;\n Mon,  6 Jul 2020 20:38:43 +0000 (GMT)",
            "from eusmgms1.samsung.com (unknown [182.198.249.179]) by\n eusmtrp1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203843eusmtrp158e60cc8697ecb3a32cc60b8cc64d987~fRFS5RpV12965829658eusmtrp1s;\n Mon,  6 Jul 2020 20:38:43 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms1.samsung.com (EUCPMTA) with SMTP id 53.EF.06314.3DB830F5; Mon,  6\n Jul 2020 21:38:43 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203841eusmtip1ec46653a3bdfb367282da652eff8f2cc~fRFRI2Sb-1791017910eusmtip1r;\n Mon,  6 Jul 2020 20:38:41 +0000 (GMT)"
        ],
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA0WSfUxTVxjGc+69vfdSrbkWEl5xEdcMs5kIbpDsjW4yjZr7h8nMosxsbKzT\n GyACslbwg38qAUKgQ60EJ1OEVod8BAZUPowQ1kRaVpFP+cgUqxIRN0QrVZACo9wa/3ve3/M+\n 5zk5OTytLmRD+MSUo5IuRZukYZVMY8ds96aBfDpus+fNVqy9XULw0aiFRlfhfRbzX2RROFwZ\n jTebLirQ9MBAYYHpJYVN1/JY/M+VyeBzdxOF91qdHBb3ZXLoto1z+Gv37wTHvc9ovFD6imB3\n yXUFzv51g8Upr5nBgrd3CZ62OgjajS8ZLGxpJpiTJ+CLinIOLffWodvlYNA50sBhtaeXxuu3\n 5wmetdcS7MpZVHz1ofi29KpCtNycoMRzZb202DFSxInGzhJKrHveTIlTbXdZscBaScS/H+XT\n YtXYDLtX+Z3yi0NSUmK6pIvY9pMy4Ypjhk4tUh4vu2BRGEg2n0cCeBCiYKq0jcsjSl4tXCNw\n 6skwIw/TBB4PLvidVwQyy9zUu0iBrUEhG+UEzK/7/YOHwILFQXxbrPAxOHNLKJ8RJNSx0OQd\n Wo4HCntgxlmzrBkhDEaHB2mfVglboMpdw8kVoVD1Z/sS5/mAJX7pVogPq4V1MHR5evlMEHp4\n uJQ56L/STpjqeOrPBsIzu9WvPwDnOSMj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Ac0uwa5M\n B+EFfuxbGrdnHKW8YDa7CY+5ygivpthFuK+r418nObsKl4yUSae7LsQld+tJ7zAfT/7yE6VX\n Ktgk/Mb9z6FgVbjzips4i2bmoxnFyE+wiIYEg6jhRL1BtKQkcHFGw33kuXjV0/HyGvTy3hYn\n Yhmk9pVn0mSsQqI/JKYZnAgzpNpPvq7FFaOQx+vTjggmY6zJkiyIThTqWe8cqZwTZ/T8T4o5\n VhOq0YJOow3RhqwE9Tx5JtuwW8Em6M3CAUFIFUz/6wjGR5mOsgLFrUxehP/19nS7oJpKWhtY\n Devnx6jfZ4QX7/edisppObB5Y+U+35Dnj6fWyXrrIsWKTZlKWZB/wPYlybcPuo/n/twwK+eD\n VuV+xs3dHL9MZ9eVRttjLEcib+6IWhCwq7O8NvokLtV+XVw0p9ZUt+1V3oYXCyMu21RsTX3V\n n4B4NSUm6jVLSZOo/wvXqKOPBwMAAA=="
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067926;\n bh=O8BZcOjmjjfyos4EN+drgkw7ydPT/VazCurM2vsSk0g=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=SHy/2RF9hhfTdt+ocMXP7OA3dB9TANhNUeBuaK+0VdYNeOR2NUmiPDSEaJ/YX+xYl\n GUnwWO0sBdmsvI5AEnMSfVINJYOxB2906Uo7ek077RagAVJrkY4tvLp2yfta3ATGT+\n j0v8Jo7l+R7nknWQeS9AyEs/QlU0i/meIQsjBMv8=",
        "X-BeenThere": "dev@dpdk.org",
        "X-CMS-RootMailID": "20200706203843eucas1p2207dc76350211e49c4b81af097499c8a",
        "Message-Id": "<20200706203743.29416-20-i.dyukov@samsung.com>",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203843eucas1p2207dc76350211e49c4b81af097499c8a@eucas1p2.samsung.com>",
        "X-RootMTR": "20200706203843eucas1p2207dc76350211e49c4b81af097499c8a",
        "X-Msg-Generator": "CA",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "X-AuditID": "cbfec7f5-371ff700000018ae-48-5f038bd45bb8",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Reply-To": "i.dyukov@samsung.com",
        "X-EPHeader": "CA",
        "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",
        "Precedence": "list",
        "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-CMS-MailID": "20200706203843eucas1p2207dc76350211e49c4b81af097499c8a",
        "Subject": "[dpdk-dev] [PATCH v6 19/25] examples/l3fwd-power: new link status\n\tprint format",
        "CMS-TYPE": "201P",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203846euoutp01c88580e41129cc742b45556a14841fbd~fRFVIR-6j1241012410euoutp01E",
        "Date": "Mon,  6 Jul 2020 23:37:33 +0300"
    },
    "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/l3fwd-power/main.c | 13 ++++---------\n 1 file changed, 4 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 9db94ce04..ba6bab4a5 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -1945,6 +1945,7 @@ check_all_ports_link_status(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@@ -1964,15 +1965,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(\"Port %d Link Up - speed %u \"\n-\t\t\t\t\t\t\"Mbps - %s\\n\", (uint8_t)portid,\n-\t\t\t\t\t\t(unsigned)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(uint8_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, 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",
        "19/25"
    ]
}