get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 127368,
    "url": "http://patchwork.dpdk.org/api/patches/127368/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230525070302.3745541-2-huangdengdui@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230525070302.3745541-2-huangdengdui@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230525070302.3745541-2-huangdengdui@huawei.com",
    "date": "2023-05-25T07:03:01",
    "name": "[v3,1/2] ethdev: add API to check if queue is available",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "25c63dde70d2d270194590953569992abbd5e69c",
    "submitter": {
        "id": 3066,
        "url": "http://patchwork.dpdk.org/api/people/3066/?format=api",
        "name": "huangdengdui",
        "email": "huangdengdui@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230525070302.3745541-2-huangdengdui@huawei.com/mbox/",
    "series": [
        {
            "id": 28168,
            "url": "http://patchwork.dpdk.org/api/series/28168/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28168",
            "date": "2023-05-25T07:03:00",
            "name": "add Rx/Tx queue ID check API and use it to fix a bug",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/28168/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/127368/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/127368/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 89E6042B95;\n\tThu, 25 May 2023 09:03:21 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 41FD842670;\n\tThu, 25 May 2023 09:03:12 +0200 (CEST)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 756FD40DF8\n for <dev@dpdk.org>; Thu, 25 May 2023 09:03:08 +0200 (CEST)",
            "from dggpeml500011.china.huawei.com (unknown [172.30.72.53])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QRf600L46zqTQh;\n Thu, 25 May 2023 14:58:32 +0800 (CST)",
            "from localhost.huawei.com (10.50.163.32) by\n dggpeml500011.china.huawei.com (7.185.36.84) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.23; Thu, 25 May 2023 15:03:03 +0800"
        ],
        "From": "Dengdui Huang <huangdengdui@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@amd.com>, <stephen@networkplumber.org>,\n <thomas@monjalon.net>, <aman.deep.singh@intel.com>, <yuying.zhang@intel.com>,\n <andrew.rybchenko@oktetlabs.ru>, <anatoly.burakov@intel.com>,\n <lihuisong@huawei.com>, <liuyonglong@huawei.com>, <liudongdong3@huawei.com>",
        "Subject": "[PATCH v3 1/2] ethdev: add API to check if queue is available",
        "Date": "Thu, 25 May 2023 15:03:01 +0800",
        "Message-ID": "<20230525070302.3745541-2-huangdengdui@huawei.com>",
        "X-Mailer": "git-send-email 2.33.0",
        "In-Reply-To": "<20230525070302.3745541-1-huangdengdui@huawei.com>",
        "References": "<20230516110021.1801443-1-huangdengdui@huawei.com>\n <20230525070302.3745541-1-huangdengdui@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.50.163.32]",
        "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n dggpeml500011.china.huawei.com (7.185.36.84)",
        "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": "The API rte_eth_dev_rxq/txq_avail which\nis used to check if Rx/Tx queue is available.\n\nSigned-off-by: Dengdui Huang <huangdengdui@huawei.com>\n---\n doc/guides/rel_notes/release_23_07.rst |  6 +++++\n lib/ethdev/rte_ethdev.c                | 22 ++++++++++++++++\n lib/ethdev/rte_ethdev.h                | 36 ++++++++++++++++++++++++++\n lib/ethdev/version.map                 |  4 +++\n 4 files changed, 68 insertions(+)",
    "diff": "diff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/guides/rel_notes/release_23_07.rst\nindex a9b1293689..399fe342db 100644\n--- a/doc/guides/rel_notes/release_23_07.rst\n+++ b/doc/guides/rel_notes/release_23_07.rst\n@@ -56,6 +56,12 @@ New Features\n      =======================================================\n \n \n+* **Added ethdev Rx/Tx queue ID check API.**\n+\n+  Added ethdev Rx/Tx queue ID check API which provides functions\n+  for check if Rx/Tx queue is available.\n+\n+\n Removed Items\n -------------\n \ndiff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c\nindex 4d03255683..5534bcce23 100644\n--- a/lib/ethdev/rte_ethdev.c\n+++ b/lib/ethdev/rte_ethdev.c\n@@ -771,6 +771,28 @@ eth_dev_validate_tx_queue(const struct rte_eth_dev *dev, uint16_t tx_queue_id)\n \treturn 0;\n }\n \n+int\n+rte_eth_dev_rxq_avail(uint16_t port_id, uint16_t queue_id)\n+{\n+\tstruct rte_eth_dev *dev;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\tdev = &rte_eth_devices[port_id];\n+\n+\treturn eth_dev_validate_rx_queue(dev, queue_id);\n+}\n+\n+int\n+rte_eth_dev_txq_avail(uint16_t port_id, uint16_t queue_id)\n+{\n+\tstruct rte_eth_dev *dev;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\tdev = &rte_eth_devices[port_id];\n+\n+\treturn eth_dev_validate_tx_queue(dev, queue_id);\n+}\n+\n int\n rte_eth_dev_rx_queue_start(uint16_t port_id, uint16_t rx_queue_id)\n {\ndiff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h\nindex 99fe9e238b..13b71f75f3 100644\n--- a/lib/ethdev/rte_ethdev.h\n+++ b/lib/ethdev/rte_ethdev.h\n@@ -2665,6 +2665,42 @@ int rte_eth_dev_socket_id(uint16_t port_id);\n  */\n int rte_eth_dev_is_valid_port(uint16_t port_id);\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change, or be removed, without prior notice\n+ *\n+ * Check if Rx queue is available.\n+ *\n+ * @param port_id\n+ *   The port identifier of the Ethernet device.\n+ * @param queue_id\n+ *  The index of the receive queue.\n+ * @return\n+ *   - -ENODEV: if *port_id* is invalid.\n+ *   - -EINVAL: if queue is out of range or not been setup.\n+ *   - 0 if Rx queue is available.\n+ */\n+__rte_experimental\n+int rte_eth_dev_rxq_avail(uint16_t port_id, uint16_t queue_id);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change, or be removed, without prior notice\n+ *\n+ * Check if Tx queue is available.\n+ *\n+ * @param port_id\n+ *   The port identifier of the Ethernet device.\n+ * @param queue_id\n+ *  The index of the transmit queue.\n+ * @return\n+ *   - -ENODEV: if *port_id* is invalid.\n+ *   - -EINVAL: if queue is out of range or not been setup.\n+ *   - 0 if Tx queue is available.\n+ */\n+__rte_experimental\n+int rte_eth_dev_txq_avail(uint16_t port_id, uint16_t queue_id);\n+\n /**\n  * Start specified Rx queue of a port. It is used when rx_deferred_start\n  * flag of the specified queue is true.\ndiff --git a/lib/ethdev/version.map b/lib/ethdev/version.map\nindex 357d1a88c0..4b51f821cb 100644\n--- a/lib/ethdev/version.map\n+++ b/lib/ethdev/version.map\n@@ -299,6 +299,10 @@ EXPERIMENTAL {\n \trte_flow_action_handle_query_update;\n \trte_flow_async_action_handle_query_update;\n \trte_flow_async_create_by_index;\n+\n+\t# added in 23.07\n+\trte_eth_dev_rxq_avail;\n+\trte_eth_dev_txq_avail;\n };\n \n INTERNAL {\n",
    "prefixes": [
        "v3",
        "1/2"
    ]
}