Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132082/?format=api
https://patches.dpdk.org/api/patches/132082/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230928074305.2991100-4-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-4-haijie1@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230928074305.2991100-4-haijie1@huawei.com", "date": "2023-09-28T07:43:00", "name": "[v2,3/8] net/enetc: save deferred start configuratin for queues", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "b5329ded7bad21e29c0fadf7401b061bc9c47bff", "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-4-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/132082/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/132082/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 A595F4265D;\n\tThu, 28 Sep 2023 09:46:37 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7158240A72;\n\tThu, 28 Sep 2023 09:46:24 +0200 (CEST)", "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 0E61440273\n for <dev@dpdk.org>; Thu, 28 Sep 2023 09:46:16 +0200 (CEST)", "from kwepemi500020.china.huawei.com (unknown [172.30.72.57])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Rx58F2tdFz15NRl;\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 3/8] net/enetc: save deferred start configuratin for queues", "Date": "Thu, 28 Sep 2023 15:43:00 +0800", "Message-ID": "<20230928074305.2991100-4-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 new fields to 'struct enetc_bdr' to save the\nconfiguratin of Rx and Tx deferred start.\n\nSigned-off-by: Jie Hai <haijie1@huawei.com>\n---\n drivers/net/enetc/enetc.h | 2 ++\n drivers/net/enetc/enetc_ethdev.c | 4 ++++\n 2 files changed, 6 insertions(+)", "diff": "diff --git a/drivers/net/enetc/enetc.h b/drivers/net/enetc/enetc.h\nindex 7163633bcedf..170854cd1649 100644\n--- a/drivers/net/enetc/enetc.h\n+++ b/drivers/net/enetc/enetc.h\n@@ -74,6 +74,8 @@ struct enetc_bdr {\n \t};\n \tstruct rte_mempool *mb_pool; /* mbuf pool to populate RX ring. */\n \tstruct rte_eth_dev *ndev;\n+\tbool rx_deferred_start;\n+\tbool tx_deferred_start;\n };\n \n /*\ndiff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\nindex 1b4337bc488c..444792b7f77e 100644\n--- a/drivers/net/enetc/enetc_ethdev.c\n+++ b/drivers/net/enetc/enetc_ethdev.c\n@@ -326,9 +326,11 @@ enetc_tx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t ENETC_TBMR, ENETC_TBMR_EN);\n \t\tdev->data->tx_queue_state[tx_ring->index] =\n \t\t\t RTE_ETH_QUEUE_STATE_STARTED;\n+\t\ttx_ring->tx_deferred_start = false;\n \t} else {\n \t\tdev->data->tx_queue_state[tx_ring->index] =\n \t\t\t RTE_ETH_QUEUE_STATE_STOPPED;\n+\t\ttx_ring->tx_deferred_start = true;\n \t}\n \n \treturn 0;\n@@ -473,9 +475,11 @@ enetc_rx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t ENETC_RBMR_EN);\n \t\tdev->data->rx_queue_state[rx_ring->index] =\n \t\t\t RTE_ETH_QUEUE_STATE_STARTED;\n+\t\trx_ring->rx_deferred_start = false;\n \t} else {\n \t\tdev->data->rx_queue_state[rx_ring->index] =\n \t\t\t RTE_ETH_QUEUE_STATE_STOPPED;\n+\t\trx_ring->rx_deferred_start = true;\n \t}\n \n \trx_ring->crc_len = (uint8_t)((rx_offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC) ?\n", "prefixes": [ "v2", "3/8" ] }{ "id": 132082, "url": "