get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109910,
    "url": "http://patchwork.dpdk.org/api/patches/109910/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220420081650.2043183-5-feifei.wang2@arm.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": "<20220420081650.2043183-5-feifei.wang2@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220420081650.2043183-5-feifei.wang2@arm.com",
    "date": "2022-04-20T08:16:49",
    "name": "[v1,4/5] net/i40e: add direct rearm mode internal API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8a9b4b55be3ba78819534e5b096db10725653ff5",
    "submitter": {
        "id": 1771,
        "url": "http://patchwork.dpdk.org/api/people/1771/?format=api",
        "name": "Feifei Wang",
        "email": "feifei.wang2@arm.com"
    },
    "delegate": {
        "id": 3961,
        "url": "http://patchwork.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220420081650.2043183-5-feifei.wang2@arm.com/mbox/",
    "series": [
        {
            "id": 22568,
            "url": "http://patchwork.dpdk.org/api/series/22568/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=22568",
            "date": "2022-04-20T08:16:45",
            "name": "Direct re-arming of buffers on receive side",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/22568/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/109910/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/109910/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 D8DE0A00BE;\n\tWed, 20 Apr 2022 10:17:25 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 81AE7427EF;\n\tWed, 20 Apr 2022 10:17:12 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id 73282427FE\n for <dev@dpdk.org>; Wed, 20 Apr 2022 10:17:11 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DFDE31424;\n Wed, 20 Apr 2022 01:17:10 -0700 (PDT)",
            "from net-x86-dell-8268.shanghai.arm.com\n (net-x86-dell-8268.shanghai.arm.com [10.169.210.114])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AAE6B3F73B;\n Wed, 20 Apr 2022 01:17:08 -0700 (PDT)"
        ],
        "From": "Feifei Wang <feifei.wang2@arm.com>",
        "To": "Beilei Xing <beilei.xing@intel.com>",
        "Cc": "dev@dpdk.org, nd@arm.com, Feifei Wang <feifei.wang2@arm.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Ruifeng Wang <ruifeng.wang@arm.com>",
        "Subject": "[PATCH v1 4/5] net/i40e: add direct rearm mode internal API",
        "Date": "Wed, 20 Apr 2022 16:16:49 +0800",
        "Message-Id": "<20220420081650.2043183-5-feifei.wang2@arm.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220420081650.2043183-1-feifei.wang2@arm.com>",
        "References": "<20220420081650.2043183-1-feifei.wang2@arm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "For direct rearm mode, add two internal functions.\n\nOne is to enable direct rearm mode in Rx queue.\n\nThe other is to map Tx queue with Rx queue to make Rx queue take\nbuffers from the specific Tx queue.\n\nSuggested-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nSigned-off-by: Feifei Wang <feifei.wang2@arm.com>\nReviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>\nReviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 34 ++++++++++++++++++++++++++++++++++\n 1 file changed, 34 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 755786dc10..9e1a523bcc 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -369,6 +369,13 @@ static int i40e_dev_rx_queue_intr_enable(struct rte_eth_dev *dev,\n static int i40e_dev_rx_queue_intr_disable(struct rte_eth_dev *dev,\n \t\t\t\t\t  uint16_t queue_id);\n \n+static int i40e_dev_rx_queue_direct_rearm_enable(struct rte_eth_dev *dev,\n+\t\t\t\t\t\tuint16_t queue_id);\n+static int i40e_dev_rx_queue_direct_rearm_map(struct rte_eth_dev *dev,\n+\t\t\t\t\t\tuint16_t rx_queue_id,\n+\t\t\t\t\t\tuint16_t tx_port_id,\n+\t\t\t\t\t\tuint16_t tx_queue_id);\n+\n static int i40e_get_regs(struct rte_eth_dev *dev,\n \t\t\t struct rte_dev_reg_info *regs);\n \n@@ -477,6 +484,8 @@ static const struct eth_dev_ops i40e_eth_dev_ops = {\n \t.rx_queue_setup               = i40e_dev_rx_queue_setup,\n \t.rx_queue_intr_enable         = i40e_dev_rx_queue_intr_enable,\n \t.rx_queue_intr_disable        = i40e_dev_rx_queue_intr_disable,\n+\t.rx_queue_direct_rearm_enable = i40e_dev_rx_queue_direct_rearm_enable,\n+\t.rx_queue_direct_rearm_map    = i40e_dev_rx_queue_direct_rearm_map,\n \t.rx_queue_release             = i40e_dev_rx_queue_release,\n \t.tx_queue_setup               = i40e_dev_tx_queue_setup,\n \t.tx_queue_release             = i40e_dev_tx_queue_release,\n@@ -11108,6 +11117,31 @@ i40e_dev_rx_queue_intr_disable(struct rte_eth_dev *dev, uint16_t queue_id)\n \treturn 0;\n }\n \n+static int i40e_dev_rx_queue_direct_rearm_enable(struct rte_eth_dev *dev,\n+\t\t\tuint16_t queue_id)\n+{\n+\tstruct i40e_rx_queue *rxq;\n+\n+\trxq = dev->data->rx_queues[queue_id];\n+\trxq->direct_rxrearm_enable = 1;\n+\n+\treturn 0;\n+}\n+\n+static int i40e_dev_rx_queue_direct_rearm_map(struct rte_eth_dev *dev,\n+\t\t\t\tuint16_t rx_queue_id, uint16_t tx_port_id,\n+\t\t\t\tuint16_t tx_queue_id)\n+{\n+\tstruct i40e_rx_queue *rxq;\n+\n+\trxq = dev->data->rx_queues[rx_queue_id];\n+\n+\trxq->direct_rxrearm_port = tx_port_id;\n+\trxq->direct_rxrearm_queue = tx_queue_id;\n+\n+\treturn 0;\n+}\n+\n /**\n  * This function is used to check if the register is valid.\n  * Below is the valid registers list for X722 only:\n",
    "prefixes": [
        "v1",
        "4/5"
    ]
}