Show a patch.

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

{
    "id": 73333,
    "url": "https://patches.dpdk.org/api/patches/73333/",
    "web_url": "https://patches.dpdk.org/patch/73333/",
    "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-21-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:34",
    "name": "[v6,20/25] examples/multi_proc*: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3f8785ceecdd38692c325802796ad68cb07fbc97",
    "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/73333/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/73333/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73333/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-dd-5f038bd679cb",
        "X-Mailer": "git-send-email 2.17.1",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203847euoutp01b9e45394b9cd3d5e5bf90b2660e7a7b7~fRFWkVR8O3113131131euoutp01b",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067927;\n bh=xMUQMNB8i6t8ay1gcbcdZCHyGWgNvOkvIPzWBMqAo/g=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=SGDGFzX4u+1/FNRUBb+qzNDkQXMwyd4qYUGAnQSGAlZDlaLjUbZPKer2/6i3vyjg/\n yg34WlkrxWlevfJjz3XSQcU6LvbZkXrVqtV1gb9gQe4ze3z35Zj4T4jowlKZPzY7Tv\n fXcCXuLdxI4AWD5xpe2QZKDtiY9cnL9zwErGvoAU=",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-RootMTR": "20200706203846eucas1p21bbcbf41b435e8fcb0ef75aa0d0c2b82",
        "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 67498A00C5;\n\tMon,  6 Jul 2020 22:41:08 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 721091DD84;\n\tMon,  6 Jul 2020 22:38:54 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id E76CC1DD01\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:47 +0200 (CEST)",
            "from eucas1p1.samsung.com (unknown [182.198.249.206])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203847euoutp01b9e45394b9cd3d5e5bf90b2660e7a7b7~fRFWkVR8O3113131131euoutp01b;\n Mon,  6 Jul 2020 20:38:47 +0000 (GMT)",
            "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203846eucas1p262094025f9606b87f765920285d0d48b~fRFVtmCFm2127421274eucas1p25;\n Mon,  6 Jul 2020 20:38:46 +0000 (GMT)",
            "from eucas1p1.samsung.com ( [182.198.249.206]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 12.D9.05997.6DB830F5; Mon,  6\n Jul 2020 21:38:46 +0100 (BST)",
            "from eusmtrp2.samsung.com (unknown [182.198.249.139]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203846eucas1p21bbcbf41b435e8fcb0ef75aa0d0c2b82~fRFVXI4k12067820678eucas1p2A;\n Mon,  6 Jul 2020 20:38:46 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203846eusmtrp21881ce9aaba93e4c98783b2775d101bd~fRFVWWJ2t0640206402eusmtrp28;\n Mon,  6 Jul 2020 20:38:46 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id B2.8E.06017.6DB830F5; Mon,  6\n Jul 2020 21:38:46 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203844eusmtip1e5ebfc75dbaa5719d2ef868cc6cb7996~fRFTlMaKd1791017910eusmtip1s;\n Mon,  6 Jul 2020 20:38:44 +0000 (GMT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 20/25] examples/multi_proc*: 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 H4sIAAAAAAAAA0WSf0wTZxjH89xd745ql6NqeIUFs2Yz00S0w+gTNTqNZpfNP5Zlm4kJYtVL\n QQFND0RmYkClI0WRdYZF1FrASYWZipafosE2AqVAJ4YhiyASnRFFoOIP2DlGOZb9930+3+/z\n Pk+evDytt7PRfHJaumRJM6UYWC1T0zzRueyPfDpxRWf5UnS3OwAH+8toHDjdx2L+6HEK71ds\n wMbacxq0P8ymsMA+RmGty8bii4GjDL4M1VL44GaAw+KuoxyGvE85PBk8C/hUGaLxjPMVYNBR\n rcGJ2w0sjiilDBZMdgOe8rQCtpwYY/B0fR2g1Sbg6OVyDssexGJooJXBQO91Dn97fZfG6vb3\n gD+1uAE7rFOazz8SJ52/asSyxmeU+HPJXVps7i3ixBN+ByVWvayjxJFb3axY4KkAsW0wnxYr\n H79jv9Zu167bI6UkH5Qsy9fv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3\n y49xWct5TFnzOMZcKu3GmefvivhM7gsLxtybbMSYqUd9JGOur0LMy5EcnKkenSNjvA9JI3Qa\n g57dkKzh9Dslh2UQJJWFgzQoJFwqCw6L2xEUKtkaGZHIKlNSWd3WyHhp8tColdB2+aZZi9tR\n BqpeaUJeApoKoRstE3wT8haIqHJEF+ePuQOBG9D0l1H8b80qeqHfRP6t+Y7oAtsg3wNIKpB2\n ZFswD/ChPpB077lThAesovbR1+aekh5NUP70i8HOP1pI7aCzvtT9c11PV999gnuGebnz156J\n PVJEpdDvZ//Yi6h19Jvrs1g+WmFFy6qQD2vgVEkqLkjKKVScQZ0kTdCo7iP3xR88n69vRKbJ\n A3ZECZBkuTCbxOUiniKVS1fZES3AJT7C6E7HEZEwUZFuZHUauc6gZDk7CnWvdxEX+yZo3P+j\n 1stlobIwCJeFBYcFbwfJamE21RoropIUevYYy2pZ3f8+TOAlzkDlfjMu+8nYiM9NFQ/Ux5ei\n z/tpS8cT4u5UFjl/6jJ/QtLI4/2vDkef+dyuXdsa0DOU62QyVyp9D97Ul4zVumxz8UomK2D3\n khFfNC9Lk7puZ54YvrL3fUxNQeCTgIWmPeZ8pd9rY0gUa87aqLneG3+Z2GSUzB8dalmTN+xV\n F+mfLSG4ZIVsM67jFL8BTvbzJQcDAAA="
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "Date": "Mon,  6 Jul 2020 23:37:34 +0300",
        "Precedence": "list",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "CMS-TYPE": "201P",
        "X-CMS-MailID": "20200706203846eucas1p21bbcbf41b435e8fcb0ef75aa0d0c2b82",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203846eucas1p21bbcbf41b435e8fcb0ef75aa0d0c2b82@eucas1p2.samsung.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-CMS-RootMailID": "20200706203846eucas1p21bbcbf41b435e8fcb0ef75aa0d0c2b82",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200706203743.29416-21-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 .../client_server_mp/mp_server/init.c              | 14 +++++---------\n examples/multi_process/symmetric_mp/main.c         | 12 ++++--------\n 2 files changed, 9 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c\nindex c2ec07ac6..3ca9bcae3 100644\n--- a/examples/multi_process/client_server_mp/mp_server/init.c\n+++ b/examples/multi_process/client_server_mp/mp_server/init.c\n@@ -185,6 +185,7 @@ check_all_ports_link_status(uint16_t port_num, 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@@ -204,15 +205,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(\"Port %d Link Up - speed %u \"\n-\t\t\t\t\t\t\"Mbps - %s\\n\", ports->id[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)ports->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\", (uint8_t)ports->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 */\ndiff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c\nindex 9a16e198c..0480874f8 100644\n--- a/examples/multi_process/symmetric_mp/main.c\n+++ b/examples/multi_process/symmetric_mp/main.c\n@@ -365,6 +365,7 @@ check_all_ports_link_status(uint16_t port_num, 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@@ -384,14 +385,9 @@ 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\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",
        "20/25"
    ]
}