get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114455,
    "url": "http://patchwork.dpdk.org/api/patches/114455/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220729193042.2764633-6-xiaoyun.li@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": "<20220729193042.2764633-6-xiaoyun.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220729193042.2764633-6-xiaoyun.li@intel.com",
    "date": "2022-07-29T19:30:37",
    "name": "[05/10] net/gve: add MTU set support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8252868849433cad37e6b7f11c402310db383db1",
    "submitter": {
        "id": 798,
        "url": "http://patchwork.dpdk.org/api/people/798/?format=api",
        "name": "Li, Xiaoyun",
        "email": "xiaoyun.li@intel.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/20220729193042.2764633-6-xiaoyun.li@intel.com/mbox/",
    "series": [
        {
            "id": 24137,
            "url": "http://patchwork.dpdk.org/api/series/24137/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24137",
            "date": "2022-07-29T19:30:32",
            "name": "introduce GVE PMD",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/24137/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/114455/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/114455/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 3C350A00C4;\n\tFri, 29 Jul 2022 21:31:39 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0084342C65;\n\tFri, 29 Jul 2022 21:31:14 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 1B07942C65\n for <dev@dpdk.org>; Fri, 29 Jul 2022 21:31:10 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Jul 2022 12:31:10 -0700",
            "from silpixa00399779.ir.intel.com (HELO\n silpixa00399779.ger.corp.intel.com) ([10.237.223.111])\n by orsmga006.jf.intel.com with ESMTP; 29 Jul 2022 12:31: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=1659123071; x=1690659071;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=HQbiMWB4WaxmYzhxYDsr4AAT4AV5M4VuMJC6UJh+72I=;\n b=B/nVX0edONY2H6nqF61EXJ+BtKQ3ZHHLvq8WKtuUIvNtJvsTcuqgoMwc\n cbUUKw0lKWTftcrx/piQmR1lkQoVslXb03WgWoX4K/jjqo1m2ia3qOxwc\n XzplJpy6g4Mmq0EPvI93rqIUK8B+wcRK5dsLZFUoigxXxiKA6MpJ/xMbn\n 05LuNxtbOTGbutOnXmv8Oa306q/NUqaypkQarlN9ytmig7OVOPf7TMJWe\n ppUZCqAvW6T15mil/YmQVuJzvSO2InqXjrHFHhh1Kw2Ul8q/gNkGDQ3Xl\n kfsQTjtO3vXJmZak+PMbVS7pAzeqjICzo5fOk3ZH9ZMjrKOZPc4jLjPIV w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10423\"; a=\"268602933\"",
            "E=Sophos;i=\"5.93,201,1654585200\"; d=\"scan'208\";a=\"268602933\"",
            "E=Sophos;i=\"5.93,201,1654585200\"; d=\"scan'208\";a=\"577059552\""
        ],
        "X-ExtLoop1": "1",
        "From": "Xiaoyun Li <xiaoyun.li@intel.com>",
        "To": "junfeng.guo@intel.com, qi.z.zhang@intel.com, awogbemila@google.com,\n bruce.richardson@intel.com",
        "Cc": "dev@dpdk.org,\n\tXiaoyun Li <xiaoyun.li@intel.com>",
        "Subject": "[PATCH 05/10] net/gve: add MTU set support",
        "Date": "Fri, 29 Jul 2022 19:30:37 +0000",
        "Message-Id": "<20220729193042.2764633-6-xiaoyun.li@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220729193042.2764633-1-xiaoyun.li@intel.com>",
        "References": "<20220729193042.2764633-1-xiaoyun.li@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>\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": [
        "05/10"
    ]
}