get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2180522,
    "url": "http://patchwork.ozlabs.org/api/patches/2180522/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260106203433.3133926-1-jonas@kwiboo.se/",
    "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": "<20260106203433.3133926-1-jonas@kwiboo.se>",
    "list_archive_url": null,
    "date": "2026-01-06T20:34:30",
    "name": "net: lwip: add TFTPSERVERIP Kconfig option",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "39064f62784e38242a7402cf002f0e07b94d1a16",
    "submitter": {
        "id": 71439,
        "url": "http://patchwork.ozlabs.org/api/people/71439/?format=api",
        "name": "Jonas Karlman",
        "email": "jonas@kwiboo.se"
    },
    "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/20260106203433.3133926-1-jonas@kwiboo.se/mbox/",
    "series": [
        {
            "id": 487383,
            "url": "http://patchwork.ozlabs.org/api/series/487383/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=487383",
            "date": "2026-01-06T20:34:30",
            "name": "net: lwip: add TFTPSERVERIP Kconfig option",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/487383/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2180522/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2180522/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\tdkim=pass (2048-bit key;\n secure) header.d=kwiboo.se header.i=@kwiboo.se header.a=rsa-sha256\n header.s=fe-e1b5cab7be header.b=UssGgiK9;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kwiboo.se",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=kwiboo.se header.i=@kwiboo.se header.b=\"UssGgiK9\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kwiboo.se",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=SRS0=0cbd=7M=kwiboo.se=jonas@fe-bounces.kwiboo.se"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dm2wG1H6nz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 07 Jan 2026 07:34:53 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A527F83F01;\n\tTue,  6 Jan 2026 21:34:50 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 4801083FBE; Tue,  6 Jan 2026 21:34:49 +0100 (CET)",
            "from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223])\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 BA93083D9F\n for <u-boot@lists.denx.de>; Tue,  6 Jan 2026 21:34:45 +0100 (CET)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se;\n h=Content-Transfer-Encoding: MIME-Version: Message-ID: Date: Subject: Cc:\n To: From; q=dns/txt; s=fe-e1b5cab7be; t=1767731684;\n bh=skQkvfC91h2RtKeDUTsD9PC2zNJT31n4DHtu5Ccg98I=;\n b=UssGgiK9LU5R0lksxnzFv96vD7FyeHyZeYamqRSVt4L44W1sbQ2rgT0mCtxH2SQ/1y2xbv76k\n WkOCEe1Js9LdxiXaOGUWHUAIp5A31HgOxCzbvg14buJSsi0p9dxxEqT3yg4M+MK8pZTMKqmduRx\n jq3h5l7cyLCqrNSlSQHZ0zGDQjLpDhpOsUkiMqVI2N78IFdGiRFLwJ9mDB9AX5JC8GbJLY8lbkn\n eJQ3JSZxGDH/aO8awBZPbPvI+NLChlzUT5fiRtwNJJA7bxeSiJOHo/mOfH3gzufWj1qfjZBCqYv\n 2QepcAycmVtwG9JYTdBxUkzAlKyx2Brwiy4WNJK6rNZg==",
        "X-Forward-Email-ID": "695d71df4c4fab46c2994ff3",
        "X-Forward-Email-Sender": "rfc822; jonas@kwiboo.se, smtp.forwardemail.net,\n 149.28.215.223",
        "X-Forward-Email-Version": "2.2.1",
        "X-Forward-Email-Website": "https://forwardemail.net",
        "X-Complaints-To": "abuse@forwardemail.net",
        "X-Report-Abuse": "abuse@forwardemail.net",
        "X-Report-Abuse-To": "abuse@forwardemail.net",
        "From": "Jonas Karlman <jonas@kwiboo.se>",
        "To": "Jerome Forissier <jerome@forissier.org>,\n Ramon Fried <rfried.dev@gmail.com>,\n Joe Hershberger <joe.hershberger@ni.com>, Tom Rini <trini@konsulko.com>",
        "Cc": "u-boot@lists.denx.de,\n\tJonas Karlman <jonas@kwiboo.se>",
        "Subject": "[PATCH] net: lwip: add TFTPSERVERIP Kconfig option",
        "Date": "Tue,  6 Jan 2026 20:34:30 +0000",
        "Message-ID": "<20260106203433.3133926-1-jonas@kwiboo.se>",
        "X-Mailer": "git-send-email 2.52.0",
        "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": "With the legacy networking stack, it is possible to use USE_SERVERIP,\nSERVERIP and BOOTP_PREFER_SERVERIP Kconfg options to force use of a\nspecific TFTP server ip.\n\nUsing the lwIP networking stack use of the 'tftpserverip' environment\nvariable provide the closest equivalent functionality.\n\nAdd USE_TFTPSERVERIP and TFTPSERVERIP Kconfig options that can be used\nto add the 'tftpserverip' environment variable to force use of a\nspecific TFTP server ip.\n\nSigned-off-by: Jonas Karlman <jonas@kwiboo.se>\n---\n include/env_default.h |  3 +++\n net/lwip/Kconfig      | 12 ++++++++++++\n 2 files changed, 15 insertions(+)",
    "diff": "diff --git a/include/env_default.h b/include/env_default.h\nindex 7f8dc1c35a74..014873e304d8 100644\n--- a/include/env_default.h\n+++ b/include/env_default.h\n@@ -58,6 +58,9 @@ const char default_environment[] = {\n #ifdef\tCONFIG_USE_SERVERIP\n \t\"serverip=\"\tCONFIG_SERVERIP\t\t\t\"\\0\"\n #endif\n+#ifdef\tCONFIG_USE_TFTPSERVERIP\n+\t\"tftpserverip=\"\tCONFIG_TFTPSERVERIP\t\t\"\\0\"\n+#endif\n #ifdef\tCONFIG_SYS_DISABLE_AUTOLOAD\n \t\"autoload=0\\0\"\n #endif\ndiff --git a/net/lwip/Kconfig b/net/lwip/Kconfig\nindex 5789766fe624..0cfd3eb2684f 100644\n--- a/net/lwip/Kconfig\n+++ b/net/lwip/Kconfig\n@@ -72,4 +72,16 @@ config LWIP_TCP_WND\n \t  but QEMU with \"-net user\" needs no more than a few KB or the\n \t  transfer will stall and eventually time out.\n \n+config USE_TFTPSERVERIP\n+\tbool \"Set a default 'tftpserverip' value in the environment\"\n+\tdepends on CMD_TFTPBOOT\n+\thelp\n+\t  Defines a default value for the IP address of a TFTP server to\n+\t  contact when using the \"tftpboot\" command.  (Environment variable\n+\t  \"tftpserverip\")\n+\n+config TFTPSERVERIP\n+\tstring \"Value of the default 'tftpserverip' value in the environment\"\n+\tdepends on USE_TFTPSERVERIP\n+\n endif # NET_LWIP\n",
    "prefixes": []
}