Show a patch.

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

{
    "id": 73331,
    "url": "https://patches.dpdk.org/api/patches/73331/",
    "web_url": "https://patches.dpdk.org/patch/73331/",
    "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-19-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:32",
    "name": "[v6,18/25] examples/l3fwd-graph: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6eec7250b506d78de7433082c84210f6522acfff",
    "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/73331/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/73331/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73331/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-65dff7000000176d-d5-5f038bd18b81",
        "X-Mailer": "git-send-email 2.17.1",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203842euoutp0104e723e623d6857ec52a07774ca19f63~fRFRjoDfJ0553305533euoutp01l",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067922;\n bh=FZgu+DseHLusxJkCwaRQ1GfffzIWoM6QnM8E1SGa7oc=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=A5NH4q1oLDV39y1EUiFWQtHe/QS0ul6CsxR8gccwLYRwAxbdgMNMHmx4v4K4W+z2O\n IccqS5fnhwWtOBr8a0hIPQyDdSKFdv2MiW/Bi3E6bpHAkus6OQ9wKuvBH3BNl8UmkD\n pcJFhKA3bE+9pBq6RceAJRJO3cNzhLwgmxXXQk2g=",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-RootMTR": "20200706203840eucas1p2366ef5cffa8f367969343fe9240cd919",
        "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 92CABA00C5;\n\tMon,  6 Jul 2020 22:40:48 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E83631DDB2;\n\tMon,  6 Jul 2020 22:38:44 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 8B7C81DD99\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:42 +0200 (CEST)",
            "from eucas1p1.samsung.com (unknown [182.198.249.206])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203842euoutp0104e723e623d6857ec52a07774ca19f63~fRFRjoDfJ0553305533euoutp01l;\n Mon,  6 Jul 2020 20:38:42 +0000 (GMT)",
            "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203841eucas1p2140acdc93e341c1f3daeb7063f1a7633~fRFQ3c6N12126421264eucas1p21;\n Mon,  6 Jul 2020 20:38:41 +0000 (GMT)",
            "from eucas1p1.samsung.com ( [182.198.249.206]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 7F.C9.05997.1DB830F5; Mon,  6\n Jul 2020 21:38:41 +0100 (BST)",
            "from eusmtrp2.samsung.com (unknown [182.198.249.139]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203840eucas1p2366ef5cffa8f367969343fe9240cd919~fRFQPZZoe1728517285eucas1p2B;\n Mon,  6 Jul 2020 20:38:40 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203840eusmtrp2725d0473b1c94314d1faedcd87aeb046~fRFQOcHS60640206402eusmtrp26;\n Mon,  6 Jul 2020 20:38:40 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id FF.7E.06017.0DB830F5; Mon,  6\n Jul 2020 21:38:40 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203839eusmtip16beb4e6e101d3c739a846710a6772f3e~fRFOcpqDb1791017910eusmtip1q;\n Mon,  6 Jul 2020 20:38:38 +0000 (GMT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 18/25] examples/l3fwd-graph: 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 H4sIAAAAAAAAA0WSe0xTdxTH97tvqtW74uMMN4lNzNjiGzVnxgd7JF6jMcZETZYp6/AGjVBJ\n r+B8kBAitTxEhwSVasU2vlojqECByIb1AdiCgkE0QSWNzskULY+pXRUpt8b/vudzvt9zcn75\n CbTuIBcjbDZuk01GQ4qe0zDVN962Tm/LpxNntZfGYrnPRtD/0EFjd/EDDvNf7aHwnnMJXnYf\n ZbHoURaFhUUBCt1n8jh83p3NYG+fm8Kuei+Ppe3ZPPZ5nvK475aV4NNQD41HyvoJ3rJVsfj2\n Sh2HL0N2BguDHQT3VzYRbCwIMFhcW0PQnCfiq7OneXR0Tca+7iYGvfcv8XhusI3GKt87gn80\n lhNsMQ+xCVOkYNlJVnJcfkZJB0+00dKN+yW8VNBso6QLvTWU9PLPDk4qrHQS6aY/n5Zcj99w\n qzQ/axZulFM2Z8immYt/1Ww6dP4BSbNrfs+tL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XG2x5+I/ji8k6Sb+spkfN5T0sJvnq4geBHHr2h+YKaSsQ/+5pL8jf7f9J73CO4\n MKPBbBJXxhok02b1AQ0EcppQ4AKDQjmNNuSQLjBYHRAedlSMj0sSjQHhUVzsudu9KLHCPfl0\n XQmRhobkFqRgMBuEH09U0hbkzqjYqwhnWmedgHECjL/3k4saTzz31vJPM4GwpcS2YKbZddiR\n U0q4gBf7gcavs9MpF/Bkd2HHS4fMVVPsGmzLHltIUrI63JjbJVtMXYFv3mkiXcMUzv7lVm9X\n qWLj8PvJhXgV64vfXZkkCtHSMuRWibxEs6SP0UuBnCToJXNCDBdt0N9FzovXtc3UNCDL8D47\n Yhmk9lDm0GSkSiYkSSl6O8IMqfZSbnvhOKxSHhVSUkWjIdJojhclOwp2rldEei+LNjj/J8EU\n qQnWhECoJkQbot0I6uXKHLb5oIqNEUzicVFMFI3/fQSj8E5DLT475t1Gk+aTFdNCa4TfdYde\n u12XIxxxG9Jza2zXTiW/9sNi6l4lc+OY/60685ewoJkmWYNUvp/0WTLX4lu8aXhgGiJKdNS6\n Y6s9fANeRRcyvwKO76zyVBzoobnmtfmrT3THN18+YY3Skmj3ycb10+lZn+2T8/t01VMThwbK\n 1ZQUK2j8SKMk/AVpiZE1BwMAAA=="
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "Date": "Mon,  6 Jul 2020 23:37:32 +0300",
        "Precedence": "list",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "CMS-TYPE": "201P",
        "X-CMS-MailID": "20200706203840eucas1p2366ef5cffa8f367969343fe9240cd919",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203840eucas1p2366ef5cffa8f367969343fe9240cd919@eucas1p2.samsung.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-CMS-RootMailID": "20200706203840eucas1p2366ef5cffa8f367969343fe9240cd919",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200706203743.29416-19-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/l3fwd-graph/main.c | 14 ++++----------\n 1 file changed, 4 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c\nindex c70270c4d..cd8e3aad1 100644\n--- a/examples/l3fwd-graph/main.c\n+++ b/examples/l3fwd-graph/main.c\n@@ -599,6 +599,7 @@ check_all_ports_link_status(uint32_t port_mask)\n \tstruct rte_eth_link link;\n \tuint16_t portid;\n \tint ret;\n+\tchar link_status_text[60];\n \n \tprintf(\"\\nChecking link status\");\n \tfflush(stdout);\n@@ -623,16 +624,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 Mbps \"\n-\t\t\t\t\t       \"-%s\\n\",\n-\t\t\t\t\t       portid, link.link_speed,\n-\t\t\t\t\t       (link.link_duplex ==\n-\t\t\t\t\t\tETH_LINK_FULL_DUPLEX)\n-\t\t\t\t\t\t       ? (\"full-duplex\")\n-\t\t\t\t\t\t       : (\"half-duplex\\n\"));\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",
        "18/25"
    ]
}