get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 51936,
    "url": "http://patchwork.dpdk.org/api/patches/51936/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20190329175219.23831-3-ferruh.yigit@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": "<20190329175219.23831-3-ferruh.yigit@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190329175219.23831-3-ferruh.yigit@intel.com",
    "date": "2019-03-29T17:52:15",
    "name": "[v3,3/7] net/i40e: set min and max MTU for i40e VF devices",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1b1b1e7fd167340b7605213f0fcac7d2e83bb326",
    "submitter": {
        "id": 324,
        "url": "http://patchwork.dpdk.org/api/people/324/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@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/20190329175219.23831-3-ferruh.yigit@intel.com/mbox/",
    "series": [
        {
            "id": 4005,
            "url": "http://patchwork.dpdk.org/api/series/4005/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=4005",
            "date": "2019-03-29T17:52:13",
            "name": "[v3,1/7] ethdev: add min/max MTU to device info",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/4005/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/51936/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/51936/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0EFDF4C9C;\n\tFri, 29 Mar 2019 18:52:37 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id 5BC7E4C88\n\tfor <dev@dpdk.org>; Fri, 29 Mar 2019 18:52:29 +0100 (CET)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t29 Mar 2019 10:52:28 -0700",
            "from silpixa00399752.ir.intel.com (HELO\n\tsilpixa00399752.ger.corp.intel.com) ([10.237.222.212])\n\tby orsmga003.jf.intel.com with ESMTP; 29 Mar 2019 10:52:27 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.60,285,1549958400\"; d=\"scan'208\";a=\"138396999\"",
        "From": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "To": "Beilei Xing <beilei.xing@intel.com>,\n\tQi Zhang <qi.z.zhang@intel.com>",
        "Cc": "dev@dpdk.org,\n\tIan Stokes <ian.stokes@intel.com>",
        "Date": "Fri, 29 Mar 2019 17:52:15 +0000",
        "Message-Id": "<20190329175219.23831-3-ferruh.yigit@intel.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190329175219.23831-1-ferruh.yigit@intel.com>",
        "References": "<1553259678-4515-1-git-send-email-ian.stokes@intel.com>\n\t<20190329175219.23831-1-ferruh.yigit@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 3/7] net/i40e: set min and max MTU for i40e VF\n\tdevices",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Ian Stokes <ian.stokes@intel.com>\n\nThis commit sets the min and max supported MTU values for i40e VF\ndevices via the i40evf_dev_info_get() function. Min MTU supported\nis set to ETHER_MIN_MTU and max mtu is calculated as the max packet\nlength supported minus the transport overhead.\n\nSigned-off-by: Ian Stokes <ian.stokes@intel.com>\n---\n drivers/net/i40e/i40e_ethdev_vf.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex 7e4bd7314..add7b2223 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -2216,6 +2216,8 @@ i40evf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \tdev_info->max_tx_queues = I40E_MAX_QP_NUM_PER_VF;\n \tdev_info->min_rx_bufsize = I40E_BUF_SIZE_MIN;\n \tdev_info->max_rx_pktlen = I40E_FRAME_SIZE_MAX;\n+\tdev_info->max_mtu = dev_info->max_rx_pktlen - I40E_ETH_OVERHEAD;\n+\tdev_info->min_mtu = ETHER_MIN_MTU;\n \tdev_info->hash_key_size = (I40E_VFQF_HKEY_MAX_INDEX + 1) * sizeof(uint32_t);\n \tdev_info->reta_size = ETH_RSS_RETA_SIZE_64;\n \tdev_info->flow_type_rss_offloads = vf->adapter->flow_types_mask;\n",
    "prefixes": [
        "v3",
        "3/7"
    ]
}