get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132083,
    "url": "http://patches.dpdk.org/api/patches/132083/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230928074305.2991100-8-haijie1@huawei.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": "<20230928074305.2991100-8-haijie1@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230928074305.2991100-8-haijie1@huawei.com",
    "date": "2023-09-28T07:43:04",
    "name": "[v2,7/8] net/idpf: support getting queue information",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "cbc6758f2034674bb6a5c9792e8f2c52532555d3",
    "submitter": {
        "id": 2935,
        "url": "http://patches.dpdk.org/api/people/2935/?format=api",
        "name": "Jie Hai",
        "email": "haijie1@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230928074305.2991100-8-haijie1@huawei.com/mbox/",
    "series": [
        {
            "id": 29668,
            "url": "http://patches.dpdk.org/api/series/29668/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29668",
            "date": "2023-09-28T07:42:57",
            "name": "fix Rx and Tx queue state",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/29668/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/132083/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/132083/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 9843C4265D;\n\tThu, 28 Sep 2023 09:46:43 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0662540A79;\n\tThu, 28 Sep 2023 09:46:26 +0200 (CEST)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 8AE9740273\n for <dev@dpdk.org>; Thu, 28 Sep 2023 09:46:16 +0200 (CEST)",
            "from kwepemi500020.china.huawei.com (unknown [172.30.72.54])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Rx58G2lCMzrSwG\n for <dev@dpdk.org>; Thu, 28 Sep 2023 15:43:58 +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:15 +0800"
        ],
        "From": "Jie Hai <haijie1@huawei.com>",
        "To": "<dev@dpdk.org>, Jingjing Wu <jingjing.wu@intel.com>, Beilei Xing\n <beilei.xing@intel.com>",
        "CC": "<haijie1@huawei.com>, <lihuisong@huawei.com>",
        "Subject": "[PATCH v2 7/8] net/idpf: support getting queue information",
        "Date": "Thu, 28 Sep 2023 15:43:04 +0800",
        "Message-ID": "<20230928074305.2991100-8-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/idpf/idpf_ethdev.c | 22 ++++++++++++++++++++++\n 1 file changed, 22 insertions(+)",
    "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex 3af7cf0bb7e0..c3819e4a863c 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -835,6 +835,26 @@ idpf_dev_close(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static void\n+idpf_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 idpf_rx_queue *rxq;\n+\n+\trxq = dev->data->rx_queues[rx_queue_id];\n+\tqinfo->conf.rx_deferred_start = rxq->rx_deferred_start;\n+}\n+\n+static void\n+idpf_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 idpf_tx_queue *txq;\n+\n+\ttxq = dev->data->tx_queues[tx_queue_id];\n+\tqinfo->conf.tx_deferred_start = txq->tx_deferred_start;\n+}\n+\n static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.dev_configure\t\t\t= idpf_dev_configure,\n \t.dev_close\t\t\t= idpf_dev_close,\n@@ -850,6 +870,8 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.tx_queue_stop\t\t\t= idpf_tx_queue_stop,\n \t.rx_queue_release\t\t= idpf_dev_rx_queue_release,\n \t.tx_queue_release\t\t= idpf_dev_tx_queue_release,\n+\t.rxq_info_get\t\t\t= idpf_rxq_info_get,\n+\t.txq_info_get\t\t\t= idpf_txq_info_get,\n \t.mtu_set\t\t\t= idpf_dev_mtu_set,\n \t.dev_supported_ptypes_get\t= idpf_dev_supported_ptypes_get,\n \t.stats_get\t\t\t= idpf_dev_stats_get,\n",
    "prefixes": [
        "v2",
        "7/8"
    ]
}