Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/101144/?format=api
http://patches.dpdk.org/api/patches/101144/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211012142250.410803-5-miao.li@intel.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": "<20211012142250.410803-5-miao.li@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211012142250.410803-5-miao.li@intel.com", "date": "2021-10-12T14:22:49", "name": "[v4,4/5] power: modify return of queue_stopped", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fa72a2c8e08e0cf1328d845210cd1a51c4884656", "submitter": { "id": 2220, "url": "http://patches.dpdk.org/api/people/2220/?format=api", "name": "Li, Miao", "email": "miao.li@intel.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211012142250.410803-5-miao.li@intel.com/mbox/", "series": [ { "id": 19542, "url": "http://patches.dpdk.org/api/series/19542/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19542", "date": "2021-10-12T14:22:45", "name": "Implement rte_power_monitor API in virtio/vhost PMD", "version": 4, "mbox": "http://patches.dpdk.org/series/19542/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/101144/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/101144/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 72DC5A0C47;\n\tTue, 12 Oct 2021 08:21:46 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0771440E50;\n\tTue, 12 Oct 2021 08:21:34 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 2104C41100\n for <dev@dpdk.org>; Tue, 12 Oct 2021 08:21:31 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Oct 2021 23:21:31 -0700", "from limiao-icelake.sh.intel.com ([10.67.115.199])\n by orsmga004.jf.intel.com with ESMTP; 11 Oct 2021 23:21:30 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10134\"; a=\"226953491\"", "E=Sophos;i=\"5.85,366,1624345200\"; d=\"scan'208\";a=\"226953491\"", "E=Sophos;i=\"5.85,366,1624345200\"; d=\"scan'208\";a=\"591613082\"" ], "X-ExtLoop1": "1", "From": "Miao Li <miao.li@intel.com>", "To": "dev@dpdk.org", "Cc": "chenbo.xia@intel.com, maxime.coquelin@redhat.com, miao.li@intel.com,\n Anatoly Burakov <anatoly.burakov@intel.com>", "Date": "Tue, 12 Oct 2021 14:22:49 +0000", "Message-Id": "<20211012142250.410803-5-miao.li@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20211012142250.410803-1-miao.li@intel.com>", "References": "<20210924102309.231304-1-miao.li@intel.com>\n <20211012142250.410803-1-miao.li@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v4 4/5] power: modify return of queue_stopped", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "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": "Since some vdevs like virtio and vhost do not support rxq_info_get and\nqueue state inquiry, the error return value -ENOTSUP need to be ignored\nwhen queue_stopped cannot get rx queue information and rx queue state.\nThis patch changes the return value of queue_stopped when\nrte_eth_rx_queue_info_get return ENOTSUP to support vdevs which cannot\nprovide rx queue information and rx queue state enable power management.\n\nSigned-off-by: Miao Li <miao.li@intel.com>\nAcked-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/power/rte_power_pmd_mgmt.c | 9 +++++++--\n 1 file changed, 7 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/power/rte_power_pmd_mgmt.c b/lib/power/rte_power_pmd_mgmt.c\nindex 0ce40f0875..39a2b4cd23 100644\n--- a/lib/power/rte_power_pmd_mgmt.c\n+++ b/lib/power/rte_power_pmd_mgmt.c\n@@ -382,8 +382,13 @@ queue_stopped(const uint16_t port_id, const uint16_t queue_id)\n {\n \tstruct rte_eth_rxq_info qinfo;\n \n-\tif (rte_eth_rx_queue_info_get(port_id, queue_id, &qinfo) < 0)\n-\t\treturn -1;\n+\tint ret = rte_eth_rx_queue_info_get(port_id, queue_id, &qinfo);\n+\tif (ret < 0) {\n+\t\tif (ret == -ENOTSUP)\n+\t\t\treturn 1;\n+\t\telse\n+\t\t\treturn -1;\n+\t}\n \n \treturn qinfo.queue_state == RTE_ETH_QUEUE_STATE_STOPPED;\n }\n", "prefixes": [ "v4", "4/5" ] }{ "id": 101144, "url": "