Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73314/?format=api
https://patches.dpdk.org/api/patches/73314/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200706203743.29416-2-i.dyukov@samsung.com/", "project": { "id": 1, "url": "https://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": "<20200706203743.29416-2-i.dyukov@samsung.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200706203743.29416-2-i.dyukov@samsung.com", "date": "2020-07-06T20:37:15", "name": "[v6,01/25] ethdev: allow unknown link speed", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "d71fc98ae014b3f31ee5deed43df7f0da93f9e7a", "submitter": { "id": 783, "url": "https://patches.dpdk.org/api/people/783/?format=api", "name": "Ivan Dyukov", "email": "i.dyukov@samsung.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200706203743.29416-2-i.dyukov@samsung.com/mbox/", "series": [ { "id": 10825, "url": "https://patches.dpdk.org/api/series/10825/?format=api", "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/73314/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/73314/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 728E9A00C5;\n\tMon, 6 Jul 2020 22:38:07 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B43E01DD01;\n\tMon, 6 Jul 2020 22:37:59 +0200 (CEST)", "from mailout1.w1.samsung.com (mailout1.w1.samsung.com\n [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 6F3791DCE2\n for <dev@dpdk.org>; Mon, 6 Jul 2020 22:37:57 +0200 (CEST)", "from eucas1p1.samsung.com (unknown [182.198.249.206])\n by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id\n 20200706203756euoutp0184c314b6c30ed20aea4014ae3eab52a0~fREnIQ5tC3113131131euoutp01U;\n Mon, 6 Jul 2020 20:37:56 +0000 (GMT)", "from eusmges2new.samsung.com (unknown [203.254.199.244]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203755eucas1p2358a7b4cadb3c50611f2e5ddf08ece8d~fREmGpIiM1729817298eucas1p2y;\n Mon, 6 Jul 2020 20:37:55 +0000 (GMT)", "from eucas1p1.samsung.com ( [182.198.249.206]) by\n eusmges2new.samsung.com (EUCPMTA) with SMTP id 41.C9.05997.3AB830F5; Mon, 6\n Jul 2020 21:37:55 +0100 (BST)", "from eusmtrp2.samsung.com (unknown [182.198.249.139]) by\n eucas1p2.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203754eucas1p2d933772e36fe6ae9d4ad29d6d1684294~fRElAk_XG2126321263eucas1p2l;\n Mon, 6 Jul 2020 20:37:54 +0000 (GMT)", "from eusmgms2.samsung.com (unknown [182.198.249.180]) by\n eusmtrp2.samsung.com (KnoxPortal) with ESMTP id\n 20200706203754eusmtrp2552b748b2dbe2d9926fe3ae8132c516f~fREk-kKFt0640206402eusmtrp2o;\n Mon, 6 Jul 2020 20:37:54 +0000 (GMT)", "from eusmtip1.samsung.com ( [203.254.199.221]) by\n eusmgms2.samsung.com (EUCPMTA) with SMTP id 4F.6E.06017.2AB830F5; Mon, 6\n Jul 2020 21:37:54 +0100 (BST)", "from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by\n eusmtip1.samsung.com (KnoxPortal) with ESMTPA id\n 20200706203752eusmtip106a4a5fc007ea709d82a6809adbeb77e~fREjNFNDI1500415004eusmtip1v;\n Mon, 6 Jul 2020 20:37:52 +0000 (GMT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com\n 20200706203756euoutp0184c314b6c30ed20aea4014ae3eab52a0~fREnIQ5tC3113131131euoutp01U", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1594067876;\n bh=BG13JEDguLywByJwOXQTWe6Zorck+0Dg5OriYR0Hx5A=;\n h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From;\n b=omwI+i/B7ZShQSv0JxkxTNO5CPYGsBsqdhhBNtDvngBoA4PSifno2Cs4JiWQMLqWD\n Gc+uLkqeqb9A+iyWmb1Mxv44+JnT3XT1TIXHikNxEO+AoKhZrviSj5tPpxj/yCdhBT\n 13ytMQtO6VORLlQAbtgwHWuPWYGPAP487/GI5MQo=", "X-AuditID": "cbfec7f4-677ff7000000176d-a0-5f038ba388ea", "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": "Mon, 6 Jul 2020 23:37:15 +0300", "Message-Id": "<20200706203743.29416-2-i.dyukov@samsung.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200706203743.29416-1-i.dyukov@samsung.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Brightmail-Tracker": [ "\n H4sIAAAAAAAAA02SbUxTZxTH89zn9t5LZ/FSu3lkYmenE5cMp/PD2VzGfEvusi/7pjFR7PQO\n zWh1rTAdXwgqq7xU5WULRXmrG1BceLG86wJdFLqCBl0DLg6wMTGKCgKNqGWOu1uj3875/X8n\n zznJI1B9Cxcv7Lcekm1Wc5qJ07KtV55e/cCdR1M+/HtgFTb0lxMMjbgpjhX/w2He5DEGhz3J\n eLHtjAYLR7MYdBY+ZrCtNpfDB2PZLD6aamPw1qUAj67r2TxO+e7yWHCtjODdyH2KpZXTBK+V\n t2jwaU8nhxORahadz4IET3r7CPbmP2axuKOdYE6uiJN1NTy6by3DqbE+FgM3L/B4PjxIsaV/\n juDp3gaCAzkvNJ8vl55V/qKR3BfvMVJR1SCVrtz8iZfy/eWM1PSonZEmfg9yktPrIdKfoTwq\n 1d+Z5b7S7tB+uldO258h29Z8tlu777exQv6ga8nhUecAn0XOGXJJjADieigq+ZHmEq2gF2sJ\n +IPHWLWZIVBV0hNtpgk0d7XyL0fmAh0aNaghcKb+eHQ+TKC9v4QoFicmQsBRziiBQWzioC0y\n xCjBIvET8Fzwz0uCwIorwTe5S8E68WMYzA6z6gtGqG/spooSM6+fvRyvYL24DIYqZhhVjwN/\n 6Z3/dTqvH20po+rorAB1tyW13gLdfaNErRfB/V5v9ICl8K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Pw8\n 4slyUnKg4V8x5OnBDFoOJvPLSMkt958imp9LXL5oeaziDaQ1c5geL51Frly/h2Wi9POzDwLl\n p5pPJC+HWFmo+ZnkxbkhanxzEnGf6qFlgvkgUuZUy2PsL9lbcRofRZMc/ynHP+X4T+UjXII0\n YrJkijdJwTrJaJKSzfG6WIvpJvKfTeXDkfJqZO9f50I8h7QTVVkMjlErjCnSTpMLEQ5rNarV\n LZ5otSrOuDNNtFpirMlJouRCYf4/HsOBU2It/iM022L0YfoIMOgjQiJCwkE7VZXF129W8/FG\n m7hdFHeI1r97FKcMTEcL7xVlP/AUZ9yfQL3ybtVYc1vc8yNLO69lblbZo+dSZV3vBrnpPWvN\n X3sX7WdDdluUI2lRPsXQydS08LzKOeccQZX923Te+trqxhPuhKxd698MKQueCbGP2N6B4Q0v\n SgeoPYdxUWfo7KaXaVFtV7/lrcHhd9va41tHZzzymQ0XvFpaSjDqF2CrZPwNFNTjbUwDAAA=" ], "X-CMS-MailID": "20200706203754eucas1p2d933772e36fe6ae9d4ad29d6d1684294", "X-Msg-Generator": "CA", "Content-Type": "text/plain; charset=\"utf-8\"", "X-RootMTR": "20200706203754eucas1p2d933772e36fe6ae9d4ad29d6d1684294", "X-EPHeader": "CA", "CMS-TYPE": "201P", "X-CMS-RootMailID": "20200706203754eucas1p2d933772e36fe6ae9d4ad29d6d1684294", "References": "<20200427095737.11082-1-i.dyukov@samsung.com>\n <20200706203743.29416-1-i.dyukov@samsung.com>\n <CGME20200706203754eucas1p2d933772e36fe6ae9d4ad29d6d1684294@eucas1p2.samsung.com>", "Subject": "[dpdk-dev] [PATCH v6 01/25] 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": [ "v6", "01/25" ] }{ "id": 73314, "url": "