get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 78905,
    "url": "https://patches.dpdk.org/api/patches/78905/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200927072626.28374-3-robinx.zhang@intel.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": "<20200927072626.28374-3-robinx.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200927072626.28374-3-robinx.zhang@intel.com",
    "date": "2020-09-27T07:26:20",
    "name": "[2/8] net/iavf: set min and max MTU for VF",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9aef5f97db7e74acd24942e8693b7ca16c392313",
    "submitter": {
        "id": 2004,
        "url": "https://patches.dpdk.org/api/people/2004/?format=api",
        "name": "Robin Zhang",
        "email": "robinx.zhang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200927072626.28374-3-robinx.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 12526,
            "url": "https://patches.dpdk.org/api/series/12526/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12526",
            "date": "2020-09-27T07:26:18",
            "name": "feature porting from i40evf to iavf",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/12526/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/78905/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/78905/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C700EA04BC;\n\tSun, 27 Sep 2020 09:47:40 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 955551D8D6;\n\tSun, 27 Sep 2020 09:47:23 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 4C6B81D8D2\n for <dev@dpdk.org>; Sun, 27 Sep 2020 09:47:21 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Sep 2020 00:47:20 -0700",
            "from intel-npg-odc-srv03.cd.intel.com ([10.240.178.138])\n by orsmga002.jf.intel.com with ESMTP; 27 Sep 2020 00:47:18 -0700"
        ],
        "IronPort-SDR": [
            "\n qGxklnEwiYywHLl5z/aGbG+WiClmpG7zgiThrjwuvysps17HQ/wsxAW7p8s9xaoTafxJn+Hgp8\n UER9UJmffmmA==",
            "\n 6/ZUwDFVgSq1SdqskH+2a8xOlUIMyR+NIiW3DP0jdbDM3TWR3618NXPpXfYiCgbMt8MJlKvzGR\n V243EciUi0Kg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9756\"; a=\"223438298\"",
            "E=Sophos;i=\"5.77,309,1596524400\"; d=\"scan'208\";a=\"223438298\"",
            "E=Sophos;i=\"5.77,309,1596524400\"; d=\"scan'208\";a=\"323939351\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Robin Zhang <robinx.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, jingjing.wu@intel.com, qiming.yang@intel.com,\n stevex.yang@intel.com, Robin Zhang <robinx.zhang@intel.com>",
        "Date": "Sun, 27 Sep 2020 07:26:20 +0000",
        "Message-Id": "<20200927072626.28374-3-robinx.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200927072626.28374-1-robinx.zhang@intel.com>",
        "References": "<20200927072626.28374-1-robinx.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/8] net/iavf: set min and max MTU for VF",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This commit sets the min and max supported MTU values for iavf VF\ndevices via the iavf_dev_info_get() function. Min MTU supported\nis set to RTE_ETHER_MIN_MTU and max MTU is calculated as the max\npacket length supported minus the transport overhead.\n\nSigned-off-by: Robin Zhang <robinx.zhang@intel.com>\n---\n drivers/net/iavf/iavf_ethdev.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex 95c71e16f..d21e35c17 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -540,6 +540,8 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \tdev_info->max_tx_queues = vf->vsi_res->num_queue_pairs;\n \tdev_info->min_rx_bufsize = IAVF_BUF_SIZE_MIN;\n \tdev_info->max_rx_pktlen = IAVF_FRAME_SIZE_MAX;\n+\tdev_info->max_mtu = dev_info->max_rx_pktlen - IAVF_ETH_OVERHEAD;\n+\tdev_info->min_mtu = RTE_ETHER_MIN_MTU;\n \tdev_info->hash_key_size = vf->vf_res->rss_key_size;\n \tdev_info->reta_size = vf->vf_res->rss_lut_size;\n \tdev_info->flow_type_rss_offloads = IAVF_RSS_OFFLOAD_ALL;\n",
    "prefixes": [
        "2/8"
    ]
}