Show a patch.

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

{
    "id": 73334,
    "url": "https://patches.dpdk.org/api/patches/73334/",
    "web_url": "https://patches.dpdk.org/patch/73334/",
    "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-22-i.dyukov@samsung.com>",
    "date": "2020-07-06T20:37:35",
    "name": "[v6,21/25] examples/ntb: new link status print format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5cee2d98c3aa65bfaca84d24f929bac7a2861d2b",
    "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/73334/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/73334/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73334/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203849eucas1p2b573ab867439ead5c864cc7638649079@eucas1p2.samsung.com>",
        "X-Mailman-Version": "2.1.15",
        "Date": "Mon,  6 Jul 2020 23:37:35 +0300",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Msg-Generator": "CA",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "X-AuditID": "cbfec7f4-65dff7000000176d-e1-5f038bdab54a",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Message-Id": "<20200706203743.29416-22-i.dyukov@samsung.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3DA7CA00C5;\n\tMon,  6 Jul 2020 22:41:16 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CBEAD1DDC4;\n\tMon,  6 Jul 2020 22:38:57 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 898701DDBF\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:38:51 +0200 (CEST)",
            "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203851euoutp01438931d82220fba9b2b9ac70c9231dfc~fRFZ8dib-0553305533euoutp01m;\n Mon,  6 Jul 2020 20:38:51 +0000 (GMT)",
            "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203850eucas1p2c42a088aecee98376ef174c6f5f0be31~fRFZKO42L2126421264eucas1p24;\n Mon,  6 Jul 2020 20:38:50 +0000 (GMT)",
            "from eucas1p2.samsung.com ( [182.198.249.207]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 34.D9.05997.ADB830F5; Mon,  6\n Jul 2020 21:38:50 +0100 (BST)",
            "from eusmtrp2.samsung.com (unknown [182.198.249.139]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203849eucas1p2b573ab867439ead5c864cc7638649079~fRFX9Ur_F2127421274eucas1p27;\n Mon,  6 Jul 2020 20:38:49 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203849eusmtrp247217959ba8fa44962e3eca2adb72359~fRFX5nQtE0640206402eusmtrp29;\n Mon,  6 Jul 2020 20:38:49 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id D4.8E.06017.9DB830F5; Mon,  6\n Jul 2020 21:38:49 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203847eusmtip1c716ffb8431841cf1ecf8b2a69964e24~fRFWH4-fC1500415004eusmtip11;\n Mon,  6 Jul 2020 20:38:47 +0000 (GMT)"
        ],
        "X-Mailer": "git-send-email 2.17.1",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v6 21/25] examples/ntb: new link status print\n\tformat",
        "X-CMS-MailID": "20200706203849eucas1p2b573ab867439ead5c864cc7638649079",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067931;\n bh=SjcxeTJpiGhJMyyglT2md+9M7XhR8AM1X0pflSOG9+o=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=cdENy7ewfLUnwZ7gbXFLzYN8vTP8dutN2z+hKsggMpmczHM598gzPIzuXhX4oCV5g\n Txnora6EcsZWJtWpXOwLmvkrx5AbBtSpIiIZenS7bDeIkY7kfouqqU/dpAcqOkbo/P\n NghrPkIb1vnUl3GpkFtSg6FojS6KP1oo38YSArFg=",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203851euoutp01438931d82220fba9b2b9ac70c9231dfc~fRFZ8dib-0553305533euoutp01m",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "From": "Ivan Dyukov <i.dyukov@samsung.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA0WSa0wTWxSFc2amM0O1ZKwkbNGgNj6uJorXq8mOGvGByfwx4Y+a+LjQKyM2\n ApoWVDQqIYpIKyigiI/yiopALlUKhaYawEfB4gWqXBStIjEx+OJhiaCgUqbGf2d9a629T04O\n T6tz2BBel5Ao6RO0cRpWydQ8GGld1GWko5ZYPNOwssVMsOdlCY3duR4Wjf3HKXxaFo4O22UF\n Zr9KoTAze4BCW2kGix+6Uxn8NGij8MVtF4cX3akcDja+5fB06yWCb0ff0Zhf+Jlgq7lagSMN\n dhb7RosZzPzaQTDL2kTQaRpgMLeulmBahoD9N65zWPIiFAe7mxh0PavisGKoncbqljGCZ52V\n BB+l/VCsmS1+LbyqEEscvZSYU9ROiw+enedEU7OZEm9+qqXEvjsdrJhpLSPiwx4jLZa/GWYj\n lVuVq2KkON1+SR+2Olq5u8pxjd6Xzx+ssVUxKeRfNoME8CAsgxG3m2QQJa8WSgmYPO8ZWXgJ\n eBzlCll8JuCtG6Z+VdpTW1jZuE6gyn6FlsUQgSceG+NLscIf4Eo3Uz4jSLjJgm20c6I+VYiA\n e8aK8QbPM8JcOFer8mGVsAJM+R2cvGEmlFvqJyIB4/zK/RAfVguh0FngnRgJQgsPjqFMIucj\n wHuh13+7qfDOafXPmQE/6gr8/DB8udXJyeV0Ai+LT/hD4WB9/x/nW0YLC6DSHibjtWCtt0xg\n EALh6ccpPkyPH7Nr8mgZqyA9TS2nNVDf7PZjgLFvk2UswkmnlZJf5zaB4rFq9gyZefH3rkJC\n ykiwlGSIj5UMSxOkA4sN2nhDUkLs4p1742+R8a/q+u701hL76D+NROCJZrIqnaWj1ArtfkNy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OFCoe7s8XLZgv879PakGtTJU\n qYIwpSpEFbIa5AslJqZ1r5RJ0Bj4ZJ4/yOv/5zBaLMtAOwqjJ1XWQ/jUYOnOy1HJ/e80/raJ\n zduvjNp7y+fhrS0bP7Rsifab/T5ww5OSH8NbR6oyAvhdaYZTpmm/fpX/iczN3tiauVPR7fUr\n 44JsL21RMa6yruhHRw94X1M/OFYUW236ubgmU7QpYbn6tAHNemNc1Lk9/vgy8YeikiF794iv\n TE4IiRplIK4XNH8BnJlDoAUDAAA="
        ],
        "X-EPHeader": "CA",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-RootMTR": "20200706203849eucas1p2b573ab867439ead5c864cc7638649079",
        "In-Reply-To": "<20200706203743.29416-1-i.dyukov@samsung.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-CMS-RootMailID": "20200706203849eucas1p2b573ab867439ead5c864cc7638649079",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Reply-To": "i.dyukov@samsung.com",
        "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",
        "CMS-TYPE": "201P"
    },
    "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/ntb/ntb_fwd.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c\nindex eba8ebf9f..84fe374c4 100644\n--- a/examples/ntb/ntb_fwd.c\n+++ b/examples/ntb/ntb_fwd.c\n@@ -729,6 +729,7 @@ start_pkt_fwd(void)\n \tstruct rte_eth_link eth_link;\n \tuint32_t lcore_id;\n \tint ret, i;\n+\tchar link_status_text[60];\n \n \tret = ntb_fwd_config_setup();\n \tif (ret < 0) {\n@@ -747,11 +748,10 @@ start_pkt_fwd(void)\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tif (eth_link.link_status) {\n-\t\t\t\tprintf(\"Eth%u Link Up. Speed %u Mbps - %s\\n\",\n-\t\t\t\t\teth_port_id, eth_link.link_speed,\n-\t\t\t\t\t(eth_link.link_duplex ==\n-\t\t\t\t\t ETH_LINK_FULL_DUPLEX) ?\n-\t\t\t\t\t(\"full-duplex\") : (\"half-duplex\"));\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(\"Eth%u %s\", eth_port_id,\n+\t\t\t\t       link_status_text);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n",
    "prefixes": [
        "v6",
        "21/25"
    ]
}