get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75387,
    "url": "http://patches.dpdk.org/api/patches/75387/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200811085246.28735-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": "<20200811085246.28735-2-i.dyukov@samsung.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200811085246.28735-2-i.dyukov@samsung.com",
    "date": "2020-08-11T08:52:20",
    "name": "[v9,01/24] ethdev: allow unknown link speed",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/20200811085246.28735-2-i.dyukov@samsung.com/mbox/",
    "series": [
        {
            "id": 11591,
            "url": "http://patches.dpdk.org/api/series/11591/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11591",
            "date": "2020-08-11T08:52:19",
            "name": "ethdev: allow unknown link speed",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/11591/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/75387/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/75387/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 C92B7A04AF;\n\tTue, 11 Aug 2020 10:53:16 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 10E4C1C027;\n\tTue, 11 Aug 2020 10:53:07 +0200 (CEST)",
            "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 9EF4E1C01F\n for <dev@dpdk.org>; Tue, 11 Aug 2020 10:53:04 +0200 (CEST)",
            "from eucas1p1.samsung.com (unknown [182.198.249.206])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200811085303euoutp01983d7e9e8b3748a92de51f940843da54~qKrcb-uoB0646906469euoutp01i;\n Tue, 11 Aug 2020 08:53:03 +0000 (GMT)",
            "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTP id\n 20200811085303eucas1p1ee60d3e4c37bbc07ccbf81bc38b08e9f~qKrcIxDu01584815848eucas1p1a;\n Tue, 11 Aug 2020 08:53:03 +0000 (GMT)",
            "from eucas1p2.samsung.com ( [182.198.249.207]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 7C.0C.05997.F6C523F5; Tue, 11\n Aug 2020 09:53:03 +0100 (BST)",
            "from eusmtrp1.samsung.com (unknown [182.198.249.138]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200811085302eucas1p22f4a941f6015f378792aae713123fbcc~qKrbn5oyJ0326203262eucas1p2f;\n Tue, 11 Aug 2020 08:53:02 +0000 (GMT)",
            "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp1.samsung.com (KnoxPortal) with ESMTP id\n 20200811085302eusmtrp108824ed0d9c7a4533e7462d71c7d4b41~qKrbm8K_I1606216062eusmtrp16;\n Tue, 11 Aug 2020 08:53:02 +0000 (GMT)",
            "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id FA.3D.06017.E6C523F5; Tue, 11\n Aug 2020 09:53:02 +0100 (BST)",
            "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200811085300eusmtip15d311123947fddb10c7e97e94111aafc~qKrZs7Bnw1362413624eusmtip1i;\n Tue, 11 Aug 2020 08:53:00 +0000 (GMT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200811085303euoutp01983d7e9e8b3748a92de51f940843da54~qKrcb-uoB0646906469euoutp01i",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1597135983;\n bh=BG13JEDguLywByJwOXQTWe6Zorck+0Dg5OriYR0Hx5A=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=BHGklrOaPad48h3jooD78okfYhawo4GoitxJA1+VaD7rgEeHYlB/7fgoMEDKxfzIY\n 6y2N28WGDolw3LwUeU1S0qg8n2OBGIkFdTnUFM8V0C8xMLTcuAvef2TFm0LBv++nMp\n mcGV2Iq02t1fVJyyUHN3pQUF39HZrMvAQJo6W9Fs=",
        "X-AuditID": "cbfec7f4-677ff7000000176d-7f-5f325c6f81af",
        "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": "Tue, 11 Aug 2020 11:52:20 +0300",
        "Message-Id": "<20200811085246.28735-2-i.dyukov@samsung.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200811085246.28735-1-i.dyukov@samsung.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Brightmail-Tracker": [
            "\n H4sIAAAAAAAAA02Sf2wTBRTHfXfXu1td8SgjPNGga0JiTWTsR/QpxokYc8aEGP8gisqschno\n fqXHGOOvZZiVlLmNboHQ6tyYurFKCrZbZ6lzNkDpurpAGAwdbMJw2YQxxogwN3Dnlch/3+/3\n fV7ee8kTWXOQXy5uLdqm2ItsBRbeyHWevNv/XPEHWXmrj51YSr6+RqDLl1pYGmm4yNOeqc8Z\n GmzPpXDwSwO5hisYqnHdZCjY5uTp2kglR5PTQYaGfooL5D5TKdB0ZEygL/o9QGNzEywdaLoF\n 1N/YYaC7v4R4ujF3kKOa2QGg2sApoGj1TY4afuwCqnJKNHWoVaCWoRU0PXKKo/gFv0Df3z7N\n UkffPNDeqA8oUXXf8Gq6PNv0rUFuCY8zcn3zaVY+eWGfIFfHGhn56GQXI9/oHuDlmkA7yL2X\n 97Cyd/QO/7Zxo/HlzUrB1u2KPeOVj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OGBK6MPSWh4fFPBMda6hB4\n i36JV83nxisviLmqOx8J7vjZpyT3sPOkhCtpdRDcNZ+L4AbvvqC40non4tp6i0mupv87tTF4\n q3K50WA28RGZBsG0QpHEgkrJakCpitEoWXXctnhVrCIqcXk6n52VyxujEtOUmbU9ZZIcW+iu\n 7lKvxILOy60oiMZMDL5Y4aOsKJiWMRcQrui86B9ov4HxQD85zczCEy+tf5hRhPtuDEwZFLME\n ew45iIAhZ15R+PnBvaJAeBYTj+s6kgKMiFmE37YNEQEtZTR45J1dPF06D9dcvTfVE+THa+zd\n U1rGZOG9XU3UtA7H7We+/MmG4NZT/VP1JLMY1zlkgTXpr9nXYCePohDbf5TtH2X7j6pEpBPJ\n ebOgy9AJKqWg1QlmfYZyu0F3Hfkf5+bDH/UuZPVtciOGRoqZ0pwENlUm1uYKeTo3wjSpkEvX\n eD0pMmm6Nm83bzSkGs3ZvOBGsf4zj5Fhs7cb/G+oN6WysWwcaNg4dZx6GSjmSA8x95NlTIbW\n xO/k+Rze+DdH0EFhFoSv5jXMUIf4kguJYtu3qJzebmoHt36rpr55wmkoWpA/GfWgNs17uYCK\n 6G3LTyoMPbEhsmiwXVa9v9ry3e1be4Xtv02uLdlSkjJfnFjx3u5Ne/tVPTx5YDNtqQ29NBZ+\n ps85Furak2Dn18G78QKffmFCRnn74XuC3PzFNZeNWK0QCZladilpFLS/AXjMThFOAwAA"
        ],
        "X-CMS-MailID": "20200811085302eucas1p22f4a941f6015f378792aae713123fbcc",
        "X-Msg-Generator": "CA",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "X-RootMTR": "20200811085302eucas1p22f4a941f6015f378792aae713123fbcc",
        "X-EPHeader": "CA",
        "CMS-TYPE": "201P",
        "X-CMS-RootMailID": "20200811085302eucas1p22f4a941f6015f378792aae713123fbcc",
        "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200811085246.28735-1-i.dyukov@samsung.com>\n <CGME20200811085302eucas1p22f4a941f6015f378792aae713123fbcc@eucas1p2.samsung.com>",
        "Subject": "[dpdk-dev] [PATCH v9 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": [
        "v9",
        "01/24"
    ]
}