get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132081,
    "url": "https://patches.dpdk.org/api/patches/132081/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230928074305.2991100-3-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-3-haijie1@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230928074305.2991100-3-haijie1@huawei.com",
    "date": "2023-09-28T07:42:59",
    "name": "[v2,2/8] net/cpfl: support getting queue information",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "366bf0921557d191456f6ff1fb7ec89c89695466",
    "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-3-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/132081/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/132081/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 955944265D;\n\tThu, 28 Sep 2023 09:46:31 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2F6CC406B8;\n\tThu, 28 Sep 2023 09:46:23 +0200 (CEST)",
            "from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188])\n by mails.dpdk.org (Postfix) with ESMTP id 7AF0F402CC\n for <dev@dpdk.org>; Thu, 28 Sep 2023 09:46:15 +0200 (CEST)",
            "from kwepemi500020.china.huawei.com (unknown [172.30.72.57])\n by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Rx56R0vBLzNmXk\n for <dev@dpdk.org>; Thu, 28 Sep 2023 15:42:23 +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:12 +0800"
        ],
        "From": "Jie Hai <haijie1@huawei.com>",
        "To": "<dev@dpdk.org>, Yuying Zhang <yuying.zhang@intel.com>, Beilei Xing\n <beilei.xing@intel.com>",
        "CC": "<haijie1@huawei.com>, <lihuisong@huawei.com>",
        "Subject": "[PATCH v2 2/8] net/cpfl: support getting queue information",
        "Date": "Thu, 28 Sep 2023 15:42:59 +0800",
        "Message-ID": "<20230928074305.2991100-3-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/cpfl/cpfl_ethdev.c |  2 ++\n drivers/net/cpfl/cpfl_rxtx.c   | 26 ++++++++++++++++++++++++++\n drivers/net/cpfl/cpfl_rxtx.h   |  4 ++++\n 3 files changed, 32 insertions(+)",
    "diff": "diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c\nindex c4ca9343c3e0..05604f99ed44 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.c\n+++ b/drivers/net/cpfl/cpfl_ethdev.c\n@@ -1291,6 +1291,8 @@ static const struct eth_dev_ops cpfl_eth_dev_ops = {\n \t.tx_queue_stop\t\t\t= cpfl_tx_queue_stop,\n \t.rx_queue_release\t\t= cpfl_dev_rx_queue_release,\n \t.tx_queue_release\t\t= cpfl_dev_tx_queue_release,\n+\t.rxq_info_get\t\t\t= cpfl_dev_rxq_info_get,\n+\t.txq_info_get\t\t\t= cpfl_dev_txq_info_get,\n \t.mtu_set\t\t\t= cpfl_dev_mtu_set,\n \t.dev_supported_ptypes_get\t= cpfl_dev_supported_ptypes_get,\n \t.stats_get\t\t\t= cpfl_dev_stats_get,\ndiff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c\nindex 2ef6871a8509..7636162b332a 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.c\n+++ b/drivers/net/cpfl/cpfl_rxtx.c\n@@ -1606,3 +1606,29 @@ cpfl_set_tx_function(struct rte_eth_dev *dev)\n \t}\n #endif /* RTE_ARCH_X86 */\n }\n+\n+void\n+cpfl_dev_rxq_info_get(struct rte_eth_dev *dev, uint16_t rx_queue_id,\n+\t\t      struct rte_eth_rxq_info *qinfo)\n+{\n+\tstruct cpfl_rx_queue *cpfl_rxq;\n+\n+\tcpfl_rxq = dev->data->rx_queues[rx_queue_id];\n+\tqinfo->nb_desc = cpfl_rxq->base.nb_rx_desc;\n+\tqinfo->conf.rx_free_thresh = cpfl_rxq->base.nb_rx_desc;\n+\tqinfo->conf.rx_free_thresh = cpfl_rxq->base.rx_free_thresh;\n+\tqinfo->conf.rx_deferred_start = cpfl_rxq->base.rx_deferred_start;\n+}\n+\n+void\n+cpfl_dev_txq_info_get(struct rte_eth_dev *dev, uint16_t tx_queue_id,\n+\t\t      struct rte_eth_txq_info *qinfo)\n+{\n+\tstruct cpfl_tx_queue *cpfl_txq;\n+\n+\tcpfl_txq = dev->data->tx_queues[tx_queue_id];\n+\tqinfo->nb_desc = cpfl_txq->base.nb_tx_desc;\n+\tqinfo->conf.tx_rs_thresh = cpfl_txq->base.rs_thresh;\n+\tqinfo->conf.tx_free_thresh = cpfl_txq->base.free_thresh;\n+\tqinfo->conf.tx_deferred_start = cpfl_txq->base.tx_deferred_start;\n+}\ndiff --git a/drivers/net/cpfl/cpfl_rxtx.h b/drivers/net/cpfl/cpfl_rxtx.h\nindex aacd087b56cd..1ec14ed24cd6 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.h\n+++ b/drivers/net/cpfl/cpfl_rxtx.h\n@@ -102,6 +102,10 @@ int cpfl_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id);\n int cpfl_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id);\n void cpfl_dev_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid);\n void cpfl_dev_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid);\n+void cpfl_dev_rxq_info_get(struct rte_eth_dev *dev, uint16_t rx_queue_id,\n+\t\t\t   struct rte_eth_rxq_info *qinfo);\n+void cpfl_dev_txq_info_get(struct rte_eth_dev *dev, uint16_t tx_queue_id,\n+\t\t\t   struct rte_eth_txq_info *qinfo);\n void cpfl_set_rx_function(struct rte_eth_dev *dev);\n void cpfl_set_tx_function(struct rte_eth_dev *dev);\n int cpfl_rx_hairpin_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,\n",
    "prefixes": [
        "v2",
        "2/8"
    ]
}