get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 119204,
    "url": "http://patchwork.dpdk.org/api/patches/119204/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221027054505.1369248-10-junfeng.guo@intel.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": "<20221027054505.1369248-10-junfeng.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221027054505.1369248-10-junfeng.guo@intel.com",
    "date": "2022-10-27T05:44:56",
    "name": "[v13,09/18] net/idpf: add support for MTU configuration",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "97c94d31dd72f47e51d4312bbbc09cb54e926724",
    "submitter": {
        "id": 1785,
        "url": "http://patchwork.dpdk.org/api/people/1785/?format=api",
        "name": "Junfeng Guo",
        "email": "junfeng.guo@intel.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/20221027054505.1369248-10-junfeng.guo@intel.com/mbox/",
    "series": [
        {
            "id": 25450,
            "url": "http://patchwork.dpdk.org/api/series/25450/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25450",
            "date": "2022-10-27T05:44:47",
            "name": "add support for idpf PMD in DPDK",
            "version": 13,
            "mbox": "http://patchwork.dpdk.org/series/25450/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/119204/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/119204/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 B94F4A00C5;\n\tThu, 27 Oct 2022 07:48:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1AB4F42BF3;\n\tThu, 27 Oct 2022 07:47:17 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 5CBCF42B98\n for <dev@dpdk.org>; Thu, 27 Oct 2022 07:47:11 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Oct 2022 22:47:11 -0700",
            "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by orsmga003.jf.intel.com with ESMTP; 26 Oct 2022 22:47:09 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1666849631; x=1698385631;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=gvF0YWYamUdXmqnFD93iRjixKuwkdKp6G1CqdGnVow8=;\n b=ZbvzOKdjmfSTl/csXEPMuJzRa/PhiGFKjLWiSXD/ipw5UfgzLeuIm4ZY\n CzTpCD0oeV9RDd2LfQVDe+PXWTevk3vvYec0ZkLcc5S0B5FCytjPzEjVv\n R1qtxw2HWN69j92IaMe85vH3B3Yhs3H/H0yjMvxh1PGPbVcqIo/0tlrpj\n rdvVWv6mYsbGcwrllMzb/kaSgyMZCETpGDaSiQAj4vRjf34riTJg2tQok\n ZvRSgeZXe0bnHyFoKZFqYNp6kV6N4tPxVtcdcK2Erh2+W2LVlslrzxzok\n KhzxOCY0cpr6T/2b1cQndYSHnw5vPGo0ET2LC7DtpQKIdgsKMkuCTvNlc w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10512\"; a=\"309831072\"",
            "E=Sophos;i=\"5.95,215,1661842800\"; d=\"scan'208\";a=\"309831072\"",
            "E=McAfee;i=\"6500,9779,10512\"; a=\"583429266\"",
            "E=Sophos;i=\"5.95,215,1661842800\"; d=\"scan'208\";a=\"583429266\""
        ],
        "X-ExtLoop1": "1",
        "From": "Junfeng Guo <junfeng.guo@intel.com>",
        "To": "andrew.rybchenko@oktetlabs.ru, qi.z.zhang@intel.com,\n jingjing.wu@intel.com,\n beilei.xing@intel.com",
        "Cc": "dev@dpdk.org,\n\tJunfeng Guo <junfeng.guo@intel.com>",
        "Subject": "[PATCH v13 09/18] net/idpf: add support for MTU configuration",
        "Date": "Thu, 27 Oct 2022 13:44:56 +0800",
        "Message-Id": "<20221027054505.1369248-10-junfeng.guo@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20221027054505.1369248-1-junfeng.guo@intel.com>",
        "References": "<20221026101027.240583-2-junfeng.guo@intel.com>\n <20221027054505.1369248-1-junfeng.guo@intel.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": "Add dev ops mtu_set.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n doc/guides/nics/features/idpf.ini |  1 +\n drivers/net/idpf/idpf_ethdev.c    | 14 ++++++++++++++\n 2 files changed, 15 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/idpf.ini b/doc/guides/nics/features/idpf.ini\nindex c25fa5de3f..c8f4a0d6ed 100644\n--- a/doc/guides/nics/features/idpf.ini\n+++ b/doc/guides/nics/features/idpf.ini\n@@ -5,6 +5,7 @@\n ;\n [Features]\n Queue start/stop     = Y\n+MTU update           = Y\n Linux                = Y\n x86-32               = Y\n x86-64               = Y\ndiff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex dee1e03d43..94f4671057 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -35,6 +35,7 @@ static int idpf_dev_stop(struct rte_eth_dev *dev);\n static int idpf_dev_close(struct rte_eth_dev *dev);\n static int idpf_dev_info_get(struct rte_eth_dev *dev,\n \t\t\t     struct rte_eth_dev_info *dev_info);\n+static int idpf_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu);\n static void idpf_adapter_rel(struct idpf_adapter *adapter);\n \n static int\n@@ -68,6 +69,7 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.tx_queue_release\t\t= idpf_dev_tx_queue_release,\n \t.dev_infos_get\t\t\t= idpf_dev_info_get,\n \t.link_update\t\t\t= idpf_dev_link_update,\n+\t.mtu_set\t\t\t= idpf_dev_mtu_set,\n };\n \n static int\n@@ -110,6 +112,18 @@ idpf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \treturn 0;\n }\n \n+static int\n+idpf_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu __rte_unused)\n+{\n+\t/* mtu setting is forbidden if port is start */\n+\tif (dev->data->dev_started) {\n+\t\tPMD_DRV_LOG(ERR, \"port must be stopped before configuration\");\n+\t\treturn -EBUSY;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static int\n idpf_init_vport_req_info(struct rte_eth_dev *dev)\n {\n",
    "prefixes": [
        "v13",
        "09/18"
    ]
}