Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132079/?format=api
https://patches.dpdk.org/api/patches/132079/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230928074305.2991100-5-haijie1@huawei.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": "<20230928074305.2991100-5-haijie1@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230928074305.2991100-5-haijie1@huawei.com", "date": "2023-09-28T07:43:01", "name": "[v2,4/8] net/enetc: support getting queue information", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "44abfe8248176e640adbeeeab02d6979b8065143", "submitter": { "id": 2935, "url": "https://patches.dpdk.org/api/people/2935/?format=api", "name": "Jie Hai", "email": "haijie1@huawei.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/20230928074305.2991100-5-haijie1@huawei.com/mbox/", "series": [ { "id": 29668, "url": "https://patches.dpdk.org/api/series/29668/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29668", "date": "2023-09-28T07:42:57", "name": "fix Rx and Tx queue state", "version": 2, "mbox": "https://patches.dpdk.org/series/29668/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/132079/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/132079/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 9DF2F4265D;\n\tThu, 28 Sep 2023 09:46:20 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A71CE40273;\n\tThu, 28 Sep 2023 09:46:17 +0200 (CEST)", "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 72A4E40296\n for <dev@dpdk.org>; Thu, 28 Sep 2023 09:46:15 +0200 (CEST)", "from kwepemi500020.china.huawei.com (unknown [172.30.72.53])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Rx58F6TKQz15NS9;\n Thu, 28 Sep 2023 15:43:57 +0800 (CST)", "from localhost.localdomain (10.67.165.2) by\n kwepemi500020.china.huawei.com (7.221.188.8) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Thu, 28 Sep 2023 15:46:13 +0800" ], "From": "Jie Hai <haijie1@huawei.com>", "To": "<dev@dpdk.org>, Gagandeep Singh <g.singh@nxp.com>, Sachin Saxena\n <sachin.saxena@nxp.com>", "CC": "<haijie1@huawei.com>, <lihuisong@huawei.com>", "Subject": "[PATCH v2 4/8] net/enetc: support getting queue information", "Date": "Thu, 28 Sep 2023 15:43:01 +0800", "Message-ID": "<20230928074305.2991100-5-haijie1@huawei.com>", "X-Mailer": "git-send-email 2.30.0", "In-Reply-To": "<20230928074305.2991100-1-haijie1@huawei.com>", "References": "<20230908112901.1169869-1-haijie1@huawei.com>\n <20230928074305.2991100-1-haijie1@huawei.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.67.165.2]", "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n kwepemi500020.china.huawei.com (7.221.188.8)", "X-CFilter-Loop": "Reflected", "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" }, "content": "This patch adds support for querying Rx/Tx queue information.\n\nSigned-off-by: Jie Hai <haijie1@huawei.com>\n---\n drivers/net/enetc/enetc_ethdev.c | 22 ++++++++++++++++++++++\n 1 file changed, 22 insertions(+)", "diff": "diff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\nindex 444792b7f77e..07ee07c4d5d8 100644\n--- a/drivers/net/enetc/enetc_ethdev.c\n+++ b/drivers/net/enetc/enetc_ethdev.c\n@@ -828,6 +828,26 @@ enetc_tx_queue_stop(struct rte_eth_dev *dev, uint16_t qidx)\n \treturn 0;\n }\n \n+static void\n+enetc_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t struct rte_eth_rxq_info *qinfo)\n+{\n+\tstruct enetc_bdr *rx_ring;\n+\n+\trx_ring = dev->data->rx_queues[queue_id];\n+\tqinfo->conf.rx_deferred_start = rx_ring->rx_deferred_start;\n+}\n+\n+static void\n+enetc_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t struct rte_eth_txq_info *qinfo)\n+{\n+\tstruct enetc_bdr *tx_ring;\n+\n+\ttx_ring = dev->data->tx_queues[queue_id];\n+\tqinfo->conf.tx_deferred_start = tx_ring->tx_deferred_start;\n+}\n+\n /*\n * The set of PCI devices this driver supports\n */\n@@ -856,10 +876,12 @@ static const struct eth_dev_ops enetc_ops = {\n \t.rx_queue_start = enetc_rx_queue_start,\n \t.rx_queue_stop = enetc_rx_queue_stop,\n \t.rx_queue_release = enetc_rx_queue_release,\n+\t.rxq_info_get = enetc_rxq_info_get,\n \t.tx_queue_setup = enetc_tx_queue_setup,\n \t.tx_queue_start = enetc_tx_queue_start,\n \t.tx_queue_stop = enetc_tx_queue_stop,\n \t.tx_queue_release = enetc_tx_queue_release,\n+\t.txq_info_get = enetc_txq_info_get,\n \t.dev_supported_ptypes_get = enetc_supported_ptypes_get,\n };\n \n", "prefixes": [ "v2", "4/8" ] }{ "id": 132079, "url": "