get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2092513,
    "url": "http://patchwork.ozlabs.org/api/patches/2092513/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250530153826.1057407-3-tharvey@gateworks.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20250530153826.1057407-3-tharvey@gateworks.com>",
    "list_archive_url": null,
    "date": "2025-05-30T15:38:24",
    "name": "[v2,3/5] net: lwip: tftp: add support for setting blocksize at runtime",
    "commit_ref": "e4e97f70526dd9f367f54a38f38115726336cd6a",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2e640bb8a18f8f2cfdf80cea123e27bc2bc014be",
    "submitter": {
        "id": 41730,
        "url": "http://patchwork.ozlabs.org/api/people/41730/?format=api",
        "name": "Tim Harvey",
        "email": "tharvey@gateworks.com"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250530153826.1057407-3-tharvey@gateworks.com/mbox/",
    "series": [
        {
            "id": 459049,
            "url": "http://patchwork.ozlabs.org/api/series/459049/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=459049",
            "date": "2025-05-30T15:38:23",
            "name": "[v2,1/5] net: lwip: call sys_check_timeouts and schedule on rx",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/459049/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2092513/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2092513/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=gateworks.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=gateworks.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=tharvey@gateworks.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4b86pY0WXhz1yFb\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 31 May 2025 01:38:45 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7B0FA8331C;\n\tFri, 30 May 2025 17:38:38 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 63FF38338D; Fri, 30 May 2025 17:38:35 +0200 (CEST)",
            "from finn.localdomain (finn.gateworks.com [108.161.129.64])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 491A98331C\n for <u-boot@lists.denx.de>; Fri, 30 May 2025 17:38:32 +0200 (CEST)",
            "from syn-068-189-091-139.biz.spectrum.com ([68.189.91.139]\n helo=tharvey.pdc.gateworks.com)\n by finn.localdomain with esmtp (Exim 4.95)\n (envelope-from <tharvey@gateworks.com>) id 1uL1oU-007QGb-1P;\n Fri, 30 May 2025 15:38:30 +0000"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "From": "Tim Harvey <tharvey@gateworks.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Simon Glass <sjg@chromium.org>,\n Tom Rini <trini@konsulko.com>, Tim Harvey <tharvey@gateworks.com>",
        "Subject": "[PATCH v2 3/5] net: lwip: tftp: add support for setting blocksize at\n runtime",
        "Date": "Fri, 30 May 2025 08:38:24 -0700",
        "Message-Id": "<20250530153826.1057407-3-tharvey@gateworks.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20250530153826.1057407-1-tharvey@gateworks.com>",
        "References": "<20250530153826.1057407-1-tharvey@gateworks.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Add support for setting the blocksize at runtime via the tftpblocksize env\nvariable as such is done with the legacy stack (CONFIG_NET).\n\nSigned-off-by: Tim Harvey <tharvey@gateworks.com>\nReviewed-by: Jerome Forissier <jerome.forissier@linaro.org>\n---\nv2:\n - added tags\n---\n net/lwip/tftp.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/net/lwip/tftp.c b/net/lwip/tftp.c\nindex 7495dc077ba5..e7502a0cbab1 100644\n--- a/net/lwip/tftp.c\n+++ b/net/lwip/tftp.c\n@@ -156,8 +156,10 @@ static void no_response(void *arg)\n static int tftp_loop(struct udevice *udev, ulong addr, char *fname,\n \t\t     ip_addr_t srvip, uint16_t srvport)\n {\n+\tint blksize = CONFIG_TFTP_BLOCKSIZE;\n \tstruct netif *netif;\n \tstruct tftp_ctx ctx;\n+\tconst char *ep;\n \terr_t err;\n \n \tif (!fname || addr == 0)\n@@ -186,7 +188,10 @@ static int tftp_loop(struct udevice *udev, ulong addr, char *fname,\n \tif (!(err == ERR_OK || err == ERR_USE))\n \t\tlog_err(\"tftp_init_client err: %d\\n\", err);\n \n-\ttftp_client_set_blksize(CONFIG_TFTP_BLOCKSIZE);\n+\tep = env_get(\"tftpblocksize\");\n+\tif (ep)\n+\t\tblksize = simple_strtol(ep, NULL, 10);\n+\ttftp_client_set_blksize(blksize);\n \n \tctx.start_time = get_timer(0);\n \terr = tftp_get(&ctx, &srvip, srvport, fname, TFTP_MODE_OCTET);\n",
    "prefixes": [
        "v2",
        "3/5"
    ]
}