get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115582,
    "url": "http://patches.dpdk.org/api/patches/115582/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220829084127.934183-6-junfeng.guo@intel.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": "<20220829084127.934183-6-junfeng.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220829084127.934183-6-junfeng.guo@intel.com",
    "date": "2022-08-29T08:41:22",
    "name": "[v2,05/10] net/gve: add MTU set support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8252868849433cad37e6b7f11c402310db383db1",
    "submitter": {
        "id": 1785,
        "url": "http://patches.dpdk.org/api/people/1785/?format=api",
        "name": "Junfeng Guo",
        "email": "junfeng.guo@intel.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/20220829084127.934183-6-junfeng.guo@intel.com/mbox/",
    "series": [
        {
            "id": 24441,
            "url": "http://patches.dpdk.org/api/series/24441/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24441",
            "date": "2022-08-29T08:41:17",
            "name": "introduce GVE PMD",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/24441/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/115582/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/115582/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 BB594A0542;\n\tMon, 29 Aug 2022 10:42:28 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2C80E42B70;\n\tMon, 29 Aug 2022 10:42:07 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 7B59442836\n for <dev@dpdk.org>; Mon, 29 Aug 2022 10:42:05 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Aug 2022 01:42:05 -0700",
            "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by orsmga008.jf.intel.com with ESMTP; 29 Aug 2022 01:42:03 -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=1661762525; x=1693298525;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Y66wUCJO/ZxOhlRayTF3bsbmqPeTqqT1Sbax7dhpbQw=;\n b=lFyRtsQfH7HpbvJMXfKhsqcwQ0QwXGN0kvveURKjlPM5PUeeS2CzqUE+\n 7GhD0yU29CK0JvN30BAqdPexTlKg3/Zr2l7inPaEaowuTdE2eUVyLFSka\n rMyOqZmilSWMMyDqCpI3SxEJzsDvUJRePyt4yzVG5n3I5U6nMAshG3ICF\n rzJ4VqCtpzXwq8LkiAXQFELL0BDC4hu5eOEMNMq3ZallPUHBr+Z6DPSVo\n QumKb6s9u2Ij3Hmqri8PqdL8cbrx5P+GV6FbJcKwVl153Yg9cQugLjAJ4\n TM3GGO2UhFUj1oVV1mc5VVbvoucSUipvisnsyqYCrmzHLh7Wj0tgUgqBG A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10453\"; a=\"356559837\"",
            "E=Sophos;i=\"5.93,272,1654585200\"; d=\"scan'208\";a=\"356559837\"",
            "E=Sophos;i=\"5.93,272,1654585200\"; d=\"scan'208\";a=\"640856878\""
        ],
        "X-ExtLoop1": "1",
        "From": "Junfeng Guo <junfeng.guo@intel.com>",
        "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com",
        "Cc": "ferruh.yigit@xilinx.com, dev@dpdk.org, xiaoyun.li@intel.com,\n awogbemila@google.com, bruce.richardson@intel.com, junfeng.guo@intel.com",
        "Subject": "[PATCH v2 05/10] net/gve: add MTU set support",
        "Date": "Mon, 29 Aug 2022 16:41:22 +0800",
        "Message-Id": "<20220829084127.934183-6-junfeng.guo@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220829084127.934183-1-junfeng.guo@intel.com>",
        "References": "<20220729193042.2764633-2-xiaoyun.li@intel.com>\n <20220829084127.934183-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": "Support dev_ops mtu_set.\n\nSigned-off-by: Xiaoyun Li <xiaoyun.li@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/gve/gve_ethdev.c | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)",
    "diff": "diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c\nindex 435115c047..26b45fde6f 100644\n--- a/drivers/net/gve/gve_ethdev.c\n+++ b/drivers/net/gve/gve_ethdev.c\n@@ -97,12 +97,41 @@ gve_dev_close(struct rte_eth_dev *dev)\n \treturn err;\n }\n \n+static int\n+gve_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n+{\n+\tstruct gve_priv *priv = dev->data->dev_private;\n+\tint err;\n+\n+\tif (mtu < RTE_ETHER_MIN_MTU || mtu > priv->max_mtu) {\n+\t\tPMD_DRV_LOG(ERR, \"MIN MTU is %u MAX MTU is %u\", RTE_ETHER_MIN_MTU, priv->max_mtu);\n+\t\treturn -EINVAL;\n+\t}\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+\tdev->data->dev_conf.rxmode.mtu = mtu + RTE_ETHER_HDR_LEN;\n+\n+\terr = gve_adminq_set_mtu(priv, mtu);\n+\tif (err) {\n+\t\tPMD_DRV_LOG(ERR, \"Failed to set mtu as %u err = %d\", mtu, err);\n+\t\treturn err;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static const struct eth_dev_ops gve_eth_dev_ops = {\n \t.dev_configure        = gve_dev_configure,\n \t.dev_start            = gve_dev_start,\n \t.dev_stop             = gve_dev_stop,\n \t.dev_close            = gve_dev_close,\n \t.link_update          = gve_link_update,\n+\t.mtu_set              = gve_dev_mtu_set,\n };\n \n static void\n",
    "prefixes": [
        "v2",
        "05/10"
    ]
}