get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77221,
    "url": "http://patches.dpdk.org/api/patches/77221/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200910193400.15326-2-i.dyukov@samsung.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200910193400.15326-2-i.dyukov@samsung.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200910193400.15326-2-i.dyukov@samsung.com",
    "date": "2020-09-10T19:33:34",
    "name": "[v10,01/24] ethdev: allow unknown link speed",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d71fc98ae014b3f31ee5deed43df7f0da93f9e7a",
    "submitter": {
        "id": 783,
        "url": "http://patches.dpdk.org/api/people/783/?format=api",
        "name": "Ivan Dyukov",
        "email": "i.dyukov@samsung.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200910193400.15326-2-i.dyukov@samsung.com/mbox/",
    "series": [
        {
            "id": 12111,
            "url": "http://patches.dpdk.org/api/series/12111/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12111",
            "date": "2020-09-10T19:33:33",
            "name": "ethdev: allow unknown link speed",
            "version": 10,
            "mbox": "http://patches.dpdk.org/series/12111/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77221/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/77221/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 07231A04B5;\n\tThu, 10 Sep 2020 21:34:21 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CFF421C0B9;\n\tThu, 10 Sep 2020 21:34:17 +0200 (CEST)",
            "from mailout2.w1.samsung.com (mailout2.w1.samsung.com\n [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 33FC31BFC3\n for <dev@dpdk.org>; Thu, 10 Sep 2020 21:34:16 +0200 (CEST)",
            "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200910193415euoutp02b02b4863a8fb0cde566f1b530a5f09c9~zgx2Q09xa0500705007euoutp02S;\n Thu, 10 Sep 2020 19:34:15 +0000 (GMT)",
            "from eusmges3new.samsung.com (unknown [203.254.199.245]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTP id\n 20200910193414eucas1p10358368e5370bf22ea15df579c52ad1d~zgx1mwy872936129361eucas1p1Q;\n Thu, 10 Sep 2020 19:34:14 +0000 (GMT)",
            "from eucas1p2.samsung.com ( [182.198.249.207]) by\n eusmges3new.samsung.com (EUCPMTA) with SMTP id CE.32.06318.6BF7A5F5; Thu, 10\n Sep 2020 20:34:14 +0100 (BST)",
            "from eusmtrp1.samsung.com (unknown [182.198.249.138]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTPA id\n 20200910193414eucas1p1e8a7fcd9e119b1d68f1dec32338f4f12~zgx09Bj_q2935729357eucas1p1w;\n Thu, 10 Sep 2020 19:34:14 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp1.samsung.com (KnoxPortal) with ESMTP id\n 20200910193414eusmtrp1588eabde5f55183e81393d11ca3965dd~zgx08J-5H3165331653eusmtrp1s;\n Thu, 10 Sep 2020 19:34:14 +0000 (GMT)",
            "from eusmtip2.samsung.com ( [203.254.199.222]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id D1.8A.06017.6BF7A5F5; Thu, 10\n Sep 2020 20:34:14 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip2.samsung.com (KnoxPortal) with ESMTPA id\n 20200910193412eusmtip25df87e32c16a103c97b3767aa4630f23~zgxzOuwJ71532615326eusmtip2L;\n Thu, 10 Sep 2020 19:34:12 +0000 (GMT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com\n 20200910193415euoutp02b02b4863a8fb0cde566f1b530a5f09c9~zgx2Q09xa0500705007euoutp02S",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1599766455;\n bh=BG13JEDguLywByJwOXQTWe6Zorck+0Dg5OriYR0Hx5A=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=Bz/k5gy1I3m6J3Oj//9P2wvVH5pnpuGtmaMo7MlGTKOcdYG9uld0DymOiJaFk+7/p\n NOK6X8YFPn8MstfxI9x1eHP8vlFnXDtFKzXIX3dDs5SjqQbSJJOQF0DwEv8Hmk9Qbr\n udTeIVOO1JyHYf5CzpOecRuPsROTT3ol8Fk2cbLY=",
        "X-AuditID": "cbfec7f5-371ff700000018ae-16-5f5a7fb64074",
        "From": "Ivan Dyukov <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",
        "Date": "Thu, 10 Sep 2020 22:33:34 +0300",
        "Message-Id": "<20200910193400.15326-2-i.dyukov@samsung.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200910193400.15326-1-i.dyukov@samsung.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA01Sa0wUZxTtNzM7M2xcHVeMF0okbmKsNaLGR29pU60hZn7YRP1hCCmlo45g\n hQV3QYpJU2CbrS4PEcTHoriyNcpDEWEXfBFE64LrSsCgGLGsFoPQqoDQIA+pw9DUf/eec+49\n 5375eFrvYoP5XcZk2WSU4g2slnHfftuy1P1zVMzy649XYOXdYoLP/nDS6D/8hMWs/l8o7Chb\n i9dqT2gwvyudwtz8AQprz9lY/NufyeCrwVoKO697ObS3ZXI42NjDYU5LEcGe8T4ajzveEGwp\n dmnw7Y0rLL4eL2Ewd7Sd4MGaJoKe7AEGD1+uI2i1CdhfepZDZ+d8HPQ3Meh9VM1hxXArja67\n EwQPeSoJ+qyTmnULxFHHGY3ovNZLiQWnW2nx9qMjnJjdXEyJVa/qKPF1fTsr5taUEfHOsyxa\n LO8eYTdpo7Rf7pDjd+2VT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9RUHy7EUGejYVPFeUMlHWHw7DPQ4G36yYD1V+eklDf+gPBCXctgra8\n X4olEfx35yUFX9b0juCLSp+S/IOuUwyf3+Ig+OsDjQQ/2NxB8wV1lYh/+PYIyVf1jtKrApM0\n Cy3mLKs4Pd0sWRdxyVrQabQG0OhiDRptjH5DvC6Oi05YuEXMzNghWqITNmnSr/oKme32qTt7\n CtqYHHQx1IaUSszG4h/udTYUqFSzlxA+77Qz4z7G/b2kDQX4ZQgee26jx5kRhMscrZQc0Gwk\n 9h5yEHIQyr6k8bODuX+CEHYBdg/lKmRNsTPx4dEiWi5VsQZc0zFpvHQarrp2j5TtADYev+ne\n INtqNgM7Wr8qxnU4fnH+MyFrFRuMW870UjJOsrNxrUMt26S/ZX99CXkcBdv/o+z/KPt/lBOR\n lShUzJKMaUZJp5EEo5RlStNsNhtvIP9sbj34VteIbAOJLsQqERekuheflKpWCDukbKMLYSXJ\n haqWtXk3qlVbhOxdosWcasnKFCUXivM/eYIMm7TZ7B+hyZqqjdPqwaDVx+hj5gM3RXWIvZ+i\n ZtMEq7hNFLeLlr93hDIgLAd5wum1g6sb1688HPKxVwgKCOyiij7U9PU3o/CJgjC6Z3fkMdKT\n nZ9erxlYt3wCW1Nqm5Pb3jl5TelBkws3c9UzIvK2pUU8WrvJ7ct/kljefrOipqnl4jx1xtnO\n rYbi/pUnFw2djvq58+S5nlmS7uXI0ei4lNq7l2O5Sn3CCv3S5IkcJaUL2ijSIgm/AWeF0YdM\n AwAA"
        ],
        "X-CMS-MailID": "20200910193414eucas1p1e8a7fcd9e119b1d68f1dec32338f4f12",
        "X-Msg-Generator": "CA",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "X-RootMTR": "20200910193414eucas1p1e8a7fcd9e119b1d68f1dec32338f4f12",
        "X-EPHeader": "CA",
        "CMS-TYPE": "201P",
        "X-CMS-RootMailID": "20200910193414eucas1p1e8a7fcd9e119b1d68f1dec32338f4f12",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200910193400.15326-1-i.dyukov@samsung.com>\n <CGME20200910193414eucas1p1e8a7fcd9e119b1d68f1dec32338f4f12@eucas1p1.samsung.com>",
        "Subject": "[dpdk-dev] [PATCH v10 01/24] ethdev: allow unknown link speed",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "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>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Thomas Monjalon <thomas@monjalon.net>\n\nWhen querying the link information, the link status is\na mandatory major information.\nOther boolean values are supposed to be accurate:\n\t- duplex mode (half/full)\n\t- negotiation (auto/fixed)\n\nThis API update is making explicit that the link speed information\nis optional.\nThe value ETH_SPEED_NUM_NONE (0) was already part of the API.\nThe value ETH_SPEED_NUM_UNKNOWN (infinite) is added to cover\ntwo different cases:\n\t- speed is not known by the driver\n\t- device is virtual\n\nSuggested-by: Morten Brørup <mb@smartsharesystems.com>\nSuggested-by: Benoit Ganne <bganne@cisco.com>\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nReviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n lib/librte_ethdev/rte_ethdev.h | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex a49242bcd..2090af501 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -303,6 +303,7 @@ struct rte_eth_stats {\n #define ETH_SPEED_NUM_56G      56000 /**<  56 Gbps */\n #define ETH_SPEED_NUM_100G    100000 /**< 100 Gbps */\n #define ETH_SPEED_NUM_200G    200000 /**< 200 Gbps */\n+#define ETH_SPEED_NUM_UNKNOWN UINT32_MAX /**< Unknown */\n \n /**\n  * A structure used to retrieve link-level information of an Ethernet port.\n@@ -2262,15 +2263,16 @@ int rte_eth_allmulticast_disable(uint16_t port_id);\n int rte_eth_allmulticast_get(uint16_t port_id);\n \n /**\n- * Retrieve the status (ON/OFF), the speed (in Mbps) and the mode (HALF-DUPLEX\n- * or FULL-DUPLEX) of the physical link of an Ethernet device. It might need\n- * to wait up to 9 seconds in it.\n+ * Retrieve the link status (up/down), the duplex mode (half/full),\n+ * the negotiation (auto/fixed), and if available, the speed (Mbps).\n+ *\n+ * It might need to wait up to 9 seconds.\n+ * @see rte_eth_link_get_nowait.\n  *\n  * @param port_id\n  *   The port identifier of the Ethernet device.\n  * @param link\n- *   A pointer to an *rte_eth_link* structure to be filled with\n- *   the status, the speed and the mode of the Ethernet device link.\n+ *   Link information written back.\n  * @return\n  *   - (0) if successful.\n  *   - (-ENOTSUP) if the function is not supported in PMD driver.\n@@ -2279,15 +2281,13 @@ int rte_eth_allmulticast_get(uint16_t port_id);\n int rte_eth_link_get(uint16_t port_id, struct rte_eth_link *link);\n \n /**\n- * Retrieve the status (ON/OFF), the speed (in Mbps) and the mode (HALF-DUPLEX\n- * or FULL-DUPLEX) of the physical link of an Ethernet device. It is a no-wait\n- * version of rte_eth_link_get().\n+ * Retrieve the link status (up/down), the duplex mode (half/full),\n+ * the negotiation (auto/fixed), and if available, the speed (Mbps).\n  *\n  * @param port_id\n  *   The port identifier of the Ethernet device.\n  * @param link\n- *   A pointer to an *rte_eth_link* structure to be filled with\n- *   the status, the speed and the mode of the Ethernet device link.\n+ *   Link information written back.\n  * @return\n  *   - (0) if successful.\n  *   - (-ENOTSUP) if the function is not supported in PMD driver.\n",
    "prefixes": [
        "v10",
        "01/24"
    ]
}