get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87116,
    "url": "https://patches.dpdk.org/api/patches/87116/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210122191925.24308-6-lironh@marvell.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": "<20210122191925.24308-6-lironh@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210122191925.24308-6-lironh@marvell.com",
    "date": "2021-01-22T19:18:53",
    "name": "[v2,05/37] net/mvpp2: remove CRC len from MRU validation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2bd84ca284b269d4128d14b36ed418c8fffe2d0f",
    "submitter": {
        "id": 996,
        "url": "https://patches.dpdk.org/api/people/996/?format=api",
        "name": "Liron Himi",
        "email": "lironh@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210122191925.24308-6-lironh@marvell.com/mbox/",
    "series": [
        {
            "id": 14911,
            "url": "https://patches.dpdk.org/api/series/14911/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14911",
            "date": "2021-01-22T19:18:48",
            "name": "net/mvpp2: misc updates",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/14911/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87116/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/87116/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 44614A0A0A;\n\tFri, 22 Jan 2021 20:20:31 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 87C911410B6;\n\tFri, 22 Jan 2021 20:20:03 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 873951410AF;\n Fri, 22 Jan 2021 20:20:00 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 10MJB4ih016361; Fri, 22 Jan 2021 11:20:00 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 3668p7tpe3-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Fri, 22 Jan 2021 11:19:59 -0800",
            "from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Fri, 22 Jan 2021 11:19:58 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com\n (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Fri, 22 Jan 2021 11:19:57 -0800",
            "from pt-lxl0023.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Fri, 22 Jan 2021 11:19:56 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=lKh7jXvkEPyJEokkbyXcwoSG7111bA0yu/3VYCzcWcI=;\n b=AqJ5I/gIj/CQDiLmG2AWPFk/IcjvrKZIH4CXxt0uN1fNFRaSaPSUNBeLFVcXhPthXc6t\n QuXrJ+3gHDHd4dXXovmjeFXFO0Nv+CRVzch4c871JvLhA06iGJo8NnCOhhSBWFOSNnQY\n /yT0q4v8gzfJ48bMDmCct8Ryfwglvv95PGoaGXKEtPNSHudBRTuPVUoGC5Dn0gQ3RRTt\n Nw7HZ3bmpDxjITQysW8sKHd2A2MaWolEDLXYE5WQc+FXSeBtCFBXWaaa95gCAURgHo4N\n i3eVtzSoVobtYkkVS3nhKMcnGjsNA3kUNFEz19PTYuA7bv6Bjy6G5EZsYO9JTKIxxmvh rw==",
        "From": "<lironh@marvell.com>",
        "To": "<jerinj@marvell.com>",
        "CC": "<dev@dpdk.org>, Liron Himi <lironh@marvell.com>, <stable@dpdk.org>, \"Yuri\n Chipchev\" <yuric@marvell.com>",
        "Date": "Fri, 22 Jan 2021 21:18:53 +0200",
        "Message-ID": "<20210122191925.24308-6-lironh@marvell.com>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20210122191925.24308-1-lironh@marvell.com>",
        "References": "<20201202101212.4717-1-lironh@marvell.com>\n <20210122191925.24308-1-lironh@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737\n definitions=2021-01-22_14:2021-01-22,\n 2021-01-22 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2 05/37] net/mvpp2: remove CRC len from MRU\n validation",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Liron Himi <lironh@marvell.com>\n\nCRC is being removed by HW before packet get\nwrite to the buffer, so CRC len should not be\nincluded in MRU validation\n\nFixes: 79ec62028 (\"net/mvpp2: update MTU and MRU related calculations\")\nCc: stable@dpdk.org\n\nSigned-off-by: Liron Himi <lironh@marvell.com>\nReviewed-by: Yuri Chipchev <yuric@marvell.com>\n---\n drivers/net/mvpp2/mrvl_ethdev.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c\nindex 559379fcd..133006f3e 100644\n--- a/drivers/net/mvpp2/mrvl_ethdev.c\n+++ b/drivers/net/mvpp2/mrvl_ethdev.c\n@@ -441,8 +441,8 @@ mrvl_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n \t * when this feature has not been enabled/supported so far\n \t * (TODO check scattered_rx flag here once scattered RX is supported).\n \t */\n-\tif (mru + MRVL_PKT_OFFS > mbuf_data_size) {\n-\t\tmru = mbuf_data_size - MRVL_PKT_OFFS;\n+\tif (mru - RTE_ETHER_CRC_LEN + MRVL_PKT_OFFS > mbuf_data_size) {\n+\t\tmru = mbuf_data_size + RTE_ETHER_CRC_LEN - MRVL_PKT_OFFS;\n \t\tmtu = MRVL_PP2_MRU_TO_MTU(mru);\n \t\tMRVL_LOG(WARNING, \"MTU too big, max MTU possible limitted \"\n \t\t\t\"by current mbuf size: %u. Set MTU to %u, MRU to %u\",\n",
    "prefixes": [
        "v2",
        "05/37"
    ]
}