get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 61805,
    "url": "https://patches.dpdk.org/api/patches/61805/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20191024055913.28817-5-somnath.kotur@broadcom.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": "<20191024055913.28817-5-somnath.kotur@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191024055913.28817-5-somnath.kotur@broadcom.com",
    "date": "2019-10-24T05:58:59",
    "name": "[04/16] net/bnxt: fix to write the correct MTU to FW",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7f7064b29d8916f88127b64bb26f05a496c65596",
    "submitter": {
        "id": 908,
        "url": "https://patches.dpdk.org/api/people/908/?format=api",
        "name": "Somnath Kotur",
        "email": "somnath.kotur@broadcom.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20191024055913.28817-5-somnath.kotur@broadcom.com/mbox/",
    "series": [
        {
            "id": 7030,
            "url": "https://patches.dpdk.org/api/series/7030/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=7030",
            "date": "2019-10-24T05:58:56",
            "name": "bnxt patchset with bug fixes",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/7030/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/61805/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/61805/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 A299A1C1BE;\n\tThu, 24 Oct 2019 08:07:10 +0200 (CEST)",
            "from relay.smtp.broadcom.com (unknown [192.19.211.62])\n\tby dpdk.org (Postfix) with ESMTP id D6C081C029\n\tfor <dev@dpdk.org>; Thu, 24 Oct 2019 08:06:57 +0200 (CEST)",
            "from dhcp-10-123-153-55.dhcp.broadcom.net\n\t(bgccx-dev-host-lnx35.bec.broadcom.net [10.123.153.55])\n\tby relay.smtp.broadcom.com (Postfix) with ESMTP id 0A2E328FA89;\n\tWed, 23 Oct 2019 23:06:56 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 0A2E328FA89",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n\ts=dkimrelay; t=1571897217;\n\tbh=1BSm/yABxJfAaSxk2xekx0IARwnQnAt+UTPcCYOIMc8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=onmwIWZlqe0Yre00jxQ3RKyhC1GGau0b4sd2LPEowtr+gaY5ntbqt+Ukd2FzGsdOA\n\t6hIIWv3egA+KdPgiD5W2lJAyX4De9jJhUItc/cF5xvZtcFt5wGT1Ky7yG3zThHKsMZ\n\t1PTI55Rl8xiB3Jp0SeNcsYOBb6/Gq7CTVd9TM4HA=",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com",
        "Date": "Thu, 24 Oct 2019 11:28:59 +0530",
        "Message-Id": "<20191024055913.28817-5-somnath.kotur@broadcom.com>",
        "X-Mailer": "git-send-email 2.10.1.613.g2cc2e70",
        "In-Reply-To": "<20191024055913.28817-1-somnath.kotur@broadcom.com>",
        "References": "<20191024055913.28817-1-somnath.kotur@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH 04/16] net/bnxt: fix to write the correct MTU to\n\tFW",
        "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: Ajit Khaparde <ajit.khaparde@broadcom.com>\n\nWe are currently writing the MAX supported MTU size even though\nthe MTU passed by the application is a different value.\nConfigure the application specified MTU instead.\n\nFixes: b7778e8a1c00 (\"net/bnxt: refactor to properly allocate resources for PF/VF\")\nSigned-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\nReviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>\nSigned-off-by: Somnath Kotur <somnath.kotur@broadcom.com>\n---\n drivers/net/bnxt/bnxt_hwrm.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c\nindex ae26b30..c777c73 100644\n--- a/drivers/net/bnxt/bnxt_hwrm.c\n+++ b/drivers/net/bnxt/bnxt_hwrm.c\n@@ -860,7 +860,7 @@ int bnxt_hwrm_func_reserve_vf_resc(struct bnxt *bp, bool test)\n \t\treq.num_l2_ctxs = rte_cpu_to_le_16(BNXT_VF_RSV_NUM_L2_CTX);\n \t\treq.num_vnics = rte_cpu_to_le_16(BNXT_VF_RSV_NUM_VNIC);\n \t} else if (bp->vf_resv_strategy ==\n-\t\t   HWRM_FUNC_RESOURCE_QCAPS_OUTPUT_VF_RESV_STRATEGY_MAXIMAL)\n+\t\t   HWRM_FUNC_RESOURCE_QCAPS_OUTPUT_VF_RESV_STRATEGY_MAXIMAL) {\n \t\tenables |= HWRM_FUNC_VF_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS;\n \t\treq.num_rsscos_ctxs = rte_cpu_to_le_16(bp->max_rsscos_ctx);\n \t}\n@@ -2956,7 +2956,8 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, int tx_rings)\n \t}\n \n \treq.flags = rte_cpu_to_le_32(bp->pf.func_cfg_flags);\n-\treq.mtu = rte_cpu_to_le_16(BNXT_MAX_MTU);\n+\treq.mtu = rte_cpu_to_le_16(RTE_MIN(bp->eth_dev->data->mtu,\n+\t\t\t\t\t   BNXT_MAX_MTU)); //FW adds hdr sizes\n \treq.mru = rte_cpu_to_le_16(BNXT_VNIC_MRU(bp->eth_dev->data->mtu));\n \treq.num_rsscos_ctxs = rte_cpu_to_le_16(bp->max_rsscos_ctx);\n \treq.num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx);\n",
    "prefixes": [
        "04/16"
    ]
}