get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 120906,
    "url": "https://patches.dpdk.org/api/patches/120906/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221215014142.15750-2-fengchengwen@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": "<20221215014142.15750-2-fengchengwen@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221215014142.15750-2-fengchengwen@huawei.com",
    "date": "2022-12-15T01:41:41",
    "name": "[1/2] net/hns3: declare support rule keep capability",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4f69dea2337582fde35eed7c25a3f12f12033650",
    "submitter": {
        "id": 2146,
        "url": "https://patches.dpdk.org/api/people/2146/?format=api",
        "name": "fengchengwen",
        "email": "fengchengwen@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/20221215014142.15750-2-fengchengwen@huawei.com/mbox/",
    "series": [
        {
            "id": 26134,
            "url": "https://patches.dpdk.org/api/series/26134/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26134",
            "date": "2022-12-15T01:41:40",
            "name": "net/hns3: support rule keep capability",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/26134/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/120906/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/120906/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 1BCE3A0543;\n\tThu, 15 Dec 2022 02:48:25 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 07C4242BFE;\n\tThu, 15 Dec 2022 02:48:20 +0100 (CET)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id B412040684\n for <dev@dpdk.org>; Thu, 15 Dec 2022 02:48:18 +0100 (CET)",
            "from dggpeml500024.china.huawei.com (unknown [172.30.72.54])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NXZlK4JYyzqT2D;\n Thu, 15 Dec 2022 09:43:57 +0800 (CST)",
            "from localhost.localdomain (10.67.165.24) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.34; Thu, 15 Dec 2022 09:48:15 +0800"
        ],
        "From": "Chengwen Feng <fengchengwen@huawei.com>",
        "To": "<thomas@monjalon.net>, <ferruh.yigit@amd.com>,\n <andrew.rybchenko@oktetlabs.ru>",
        "CC": "<dev@dpdk.org>, <liudongdong3@huawei.com>, <yisen.zhuang@huawei.com>,\n <aman.deep.singh@intel.com>, <yuying.zhang@intel.com>",
        "Subject": "[PATCH 1/2] net/hns3: declare support rule keep capability",
        "Date": "Thu, 15 Dec 2022 01:41:41 +0000",
        "Message-ID": "<20221215014142.15750-2-fengchengwen@huawei.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20221215014142.15750-1-fengchengwen@huawei.com>",
        "References": "<20221215014142.15750-1-fengchengwen@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.67.165.24]",
        "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n dggpeml500024.china.huawei.com (7.185.36.10)",
        "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 driver supports create flow rules when device is stopped, and\nre-setup flow rules when restarting, so declare support\nRTE_ETH_DEV_CAPA_FLOW_RULE_KEEP.\n\nThe driver also supports to create indirect actions when device is\nstopped, and keeps the indirect actions when restarting, so declare\nsupport RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n drivers/net/hns3/hns3_common.c | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c\nindex 7adc6a4972..da0a481f15 100644\n--- a/drivers/net/hns3/hns3_common.c\n+++ b/drivers/net/hns3/hns3_common.c\n@@ -90,10 +90,11 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info)\n \tif (hns3_dev_get_support(hw, OUTER_UDP_CKSUM))\n \t\tinfo->tx_offload_capa |= RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;\n \n+\tinfo->dev_capa = RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP |\n+\t\t\t RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP;\n \tif (hns3_dev_get_support(hw, INDEP_TXRX))\n-\t\tinfo->dev_capa = RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |\n-\t\t\t\t RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;\n-\tinfo->dev_capa &= ~RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP;\n+\t\tinfo->dev_capa |= RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |\n+\t\t\t\t  RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;\n \n \tif (hns3_dev_get_support(hw, PTP))\n \t\tinfo->rx_offload_capa |= RTE_ETH_RX_OFFLOAD_TIMESTAMP;\n",
    "prefixes": [
        "1/2"
    ]
}