get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2173732,
    "url": "http://patchwork.ozlabs.org/api/patches/2173732/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20251212-lwip_nfs-v2-1-9cb5a60520d8@linaro.org/",
    "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": "<20251212-lwip_nfs-v2-1-9cb5a60520d8@linaro.org>",
    "list_archive_url": null,
    "date": "2025-12-12T11:32:24",
    "name": "[v2,1/6] net: move net_state to net-common",
    "commit_ref": "60c228c07734a6f3d670c89d2db2e3addd8a73a8",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "cd9105b91eb8641b9291f920b33385153a00ccde",
    "submitter": {
        "id": 88793,
        "url": "http://patchwork.ozlabs.org/api/people/88793/?format=api",
        "name": "Andrew Goodbody",
        "email": "andrew.goodbody@linaro.org"
    },
    "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/20251212-lwip_nfs-v2-1-9cb5a60520d8@linaro.org/mbox/",
    "series": [
        {
            "id": 485199,
            "url": "http://patchwork.ozlabs.org/api/series/485199/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=485199",
            "date": "2025-12-12T11:32:23",
            "name": "net: Port NFS to lwIP",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/485199/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2173732/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2173732/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 unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=Jy2/SmiW;\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=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"Jy2/SmiW\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=andrew.goodbody@linaro.org"
        ],
        "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 4dSS4T3WWvz1xsK\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 12 Dec 2025 22:32:57 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C9EFA839A5;\n\tFri, 12 Dec 2025 12:32:38 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 4CBC9839E4; Fri, 12 Dec 2025 12:32:34 +0100 (CET)",
            "from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com\n [IPv6:2a00:1450:4864:20::32d])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 4A9FF835B3\n for <u-boot@lists.denx.de>; Fri, 12 Dec 2025 12:32:27 +0100 (CET)",
            "by mail-wm1-x32d.google.com with SMTP id\n 5b1f17b1804b1-4779a4fc95aso4499985e9.1\n for <u-boot@lists.denx.de>; Fri, 12 Dec 2025 03:32:27 -0800 (PST)",
            "from artemis2.elfringham.co.uk\n ([2a0a:ef40:fed:3801:9287:1e8a:f239:8d00])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-47a8f8f39c6sm26277235e9.14.2025.12.12.03.32.25\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 12 Dec 2025 03:32:26 -0800 (PST)"
        ],
        "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 SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1765539147; x=1766143947; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=9jHlF4RU3VygYpdibfy2spEXBtvNrky1F9vR5/RKFYc=;\n b=Jy2/SmiW+IbGxz2taF+SsahE1MC0KRGhcwGLblP3i0Bpj2rssl3+rHsrHS84YHIzHj\n H9d96hJyhjYX62H++h+lIQuK7B+yu2vcd5Cnk0pb8bwkMwSY0yiAU7BXdrWC6qDokp9Q\n SWw+T5oYbUQI+OyAwvLh6ILDkQKJ5aIkKVhC9qLAflPLDbiTtX2hQHTGbjblJQQ2J4AJ\n o2uY/TUM4lf8HsAa5GwHLa4o4iGPyCiw8WGOvCiSF6bMycPRtxeK1IP1XSb8bIhT1cUo\n ZzIAfRQ3Fb9w7p6oftG+OEwdnnLPoXW0TBg8hXQCeQxiQsvL+EjGDBjTKUsgGK/5FAHq\n CTrg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1765539147; x=1766143947;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=9jHlF4RU3VygYpdibfy2spEXBtvNrky1F9vR5/RKFYc=;\n b=PUylVXYwnaI/N2K56hmq8jkVpWh83fgg9R2KQUBOqlWg3WDAf5tIbAG2vj3k7ZQ/wA\n HpmMno+wrE0SuItt0JBxnWhDwXR1QVsWgHJtdHGMdnkSIfs/2/TP13GPkFnVkRhctEnO\n M/G9vWy69kPuTxltfvn0e9B+HWnuCBtrdJyx/Xmnm9IoYNozvbxOHgg26YCL8F3hMmtW\n PWZqMNoaTjRxbzPQYA/xUBYroSjy4H6vhNJbXGhWYudEj6S5KVehdph7Z/r8tcM5bKVi\n 1zgWYJabd74LUBqcQdrRZ4GnelC45q+/W9UVyeFbxsu3DT8ZLQP3cMQwLgEJXa9OWB7E\n iF7A==",
        "X-Gm-Message-State": "AOJu0YyZmpMntBix89weqvMhbS5l1BKUVDkIoHygEwgUh4aggh4L6mJj\n CLlr4qJAwTnDbNiI+cd4BQKJbYZzJQPmPV4npXadlTNUQqshb75OzpPoKuoygnSH21Q=",
        "X-Gm-Gg": "AY/fxX4EmbMPlR6jlK9c4t+EL8BB/cXH+6KrrfUHglCipNye/WkJemSAz7G9Qwzsm8V\n EBrKc6CjCMnw8mWLlILVRNQwKYPA3bLW/GU8F76B60YLolR/wx2sjLeIGyeavv1+LT0dImLk+as\n aiCZJZdk+Hz+lxoTQeMrX6DRmKx+ekgidNwNz3fMxh3eWSopSweUm3O34XBXPiVSoRqM1BqFRPi\n oh3jUFLzM9PjMjuh9tXR+ZwWnDRAP7xC1r5gDPZq3IXHIk4fHcCGaw5dDHNN+7QYricQWQuhHpM\n Huwe8INdkOsbZSiivCM4UrUXudOpQW+1ScKSpDzJebA/zuf2I5W2XFBUvcn/xnaM2FMRteekX7n\n 6WJlF5Xlg+WTskbSxcnTuo3C4aPIUMpR7QxWb7kFTy8uQ/exjZ1D1/0Keik/fgLkCRT1Q3qyRG8\n pcWmae/lllCLCX1mgTHcuo9gD++BctYeGTtEw1l30=",
        "X-Google-Smtp-Source": "\n AGHT+IGtWj9muCxyH68qRNUJQnSv84Y7ayvWi1j1b68XnWJ7qiWa85I0Qt8CGgYF8v2gxEjf/8s10w==",
        "X-Received": "by 2002:a05:600c:1c89:b0:479:3a8e:e490 with SMTP id\n 5b1f17b1804b1-47a8f2cb09dmr21473585e9.18.1765539146640;\n Fri, 12 Dec 2025 03:32:26 -0800 (PST)",
        "From": "Andrew Goodbody <andrew.goodbody@linaro.org>",
        "Date": "Fri, 12 Dec 2025 11:32:24 +0000",
        "Subject": "[PATCH v2 1/6] net: move net_state to net-common",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20251212-lwip_nfs-v2-1-9cb5a60520d8@linaro.org>",
        "References": "<20251212-lwip_nfs-v2-0-9cb5a60520d8@linaro.org>",
        "In-Reply-To": "<20251212-lwip_nfs-v2-0-9cb5a60520d8@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>, Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>,\n Jerome Forissier <jerome.forissier@linaro.org>,\n Simon Glass <sjg@chromium.org>, Benjamin Hahn <B.Hahn@phytec.de>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Adriano Cordova <adrianox@gmail.com>,\n Max Merchel <Max.Merchel@ew.tq-group.com>,\n Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>,\n Andre Przywara <andre.przywara@arm.com>, Tim Harvey <tharvey@gateworks.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Michal Simek <michal.simek@amd.com>,\n Michael Trimarchi <michael@amarulasolutions.com>,\n Ibai Erkiaga <ibai.erkiaga-elorza@amd.com>,\n Wolfgang Wallner <wolfgang.wallner@br-automation.com>,\n \"Kory Maincent (TI.com)\" <kory.maincent@bootlin.com>,\n Martyn Welch <martyn.welch@collabora.com>,\n Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>,\n Andrew Goodbody <andrew.goodbody@linaro.org>",
        "X-Mailer": "b4 0.14.2",
        "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": "Move the net_state variable into common code so that it can be used by\neither the legacy network code or lwIP. This is needed for porting\nacross the NFS support code for use with lwIP.\n\nSigned-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>\n---\n include/net-common.h | 17 +++++++++++++++++\n include/net-legacy.h | 17 -----------------\n net/net-common.c     |  3 +++\n net/net.c            |  2 --\n 4 files changed, 20 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/include/net-common.h b/include/net-common.h\nindex f5cff3e7c0c5d25f154e7730fad52cf03f71b875..d7a0f7dff7e50527e77419ead9a9ff30deeea545 100644\n--- a/include/net-common.h\n+++ b/include/net-common.h\n@@ -13,6 +13,7 @@\n #include <time.h>\n \n #define DEBUG_NET_PKT_TRACE 0\t/* Trace all packet data */\n+#define DEBUG_INT_STATE 0\t/* Internal network state changes */\n \n /*\n  *\tThe number of receive packet buffers, and the required packet buffer\n@@ -114,6 +115,22 @@ struct ip_udp_hdr {\n #define RINGSZ\t\t4\n #define RINGSZ_LOG2\t2\n \n+/* Network loop state */\n+enum net_loop_state {\n+\tNETLOOP_CONTINUE,\n+\tNETLOOP_RESTART,\n+\tNETLOOP_SUCCESS,\n+\tNETLOOP_FAIL\n+};\n+\n+extern enum net_loop_state net_state;\n+\n+static inline void net_set_state(enum net_loop_state state)\n+{\n+\tdebug_cond(DEBUG_INT_STATE, \"--- NetState set to %d\\n\", state);\n+\tnet_state = state;\n+}\n+\n extern int\t\tnet_restart_wrap;\t/* Tried all network devices */\n extern uchar               *net_rx_packets[PKTBUFSRX]; /* Receive packets */\n extern const u8\t\tnet_bcast_ethaddr[ARP_HLEN];\t/* Ethernet broadcast address */\ndiff --git a/include/net-legacy.h b/include/net-legacy.h\nindex 9564e97d238daa2ce919ebaa60bdaf4466d76b14..0a10121b0cf50898a90bb1179966f01dbdda65ad 100644\n--- a/include/net-legacy.h\n+++ b/include/net-legacy.h\n@@ -25,7 +25,6 @@ struct udevice;\n #define DEBUG_LL_STATE 0\t/* Link local state machine changes */\n #define DEBUG_DEV_PKT 0\t\t/* Packets or info directed to the device */\n #define DEBUG_NET_PKT 0\t\t/* Packets on info on the network at large */\n-#define DEBUG_INT_STATE 0\t/* Internal network state changes */\n \n /* ARP hardware address length */\n #define ARP_HLEN 6\n@@ -369,22 +368,6 @@ bool arp_is_waiting(void);\t\t/* Waiting for ARP reply? */\n void net_set_icmp_handler(rxhand_icmp_f *f); /* Set ICMP RX handler */\n void net_set_timeout_handler(ulong t, thand_f *f);/* Set timeout handler */\n \n-/* Network loop state */\n-enum net_loop_state {\n-\tNETLOOP_CONTINUE,\n-\tNETLOOP_RESTART,\n-\tNETLOOP_SUCCESS,\n-\tNETLOOP_FAIL\n-};\n-\n-extern enum net_loop_state net_state;\n-\n-static inline void net_set_state(enum net_loop_state state)\n-{\n-\tdebug_cond(DEBUG_INT_STATE, \"--- NetState set to %d\\n\", state);\n-\tnet_state = state;\n-}\n-\n /*\n  * net_get_async_tx_pkt_buf - Get a packet buffer that is not in use for\n  *\t\t\t      sending an asynchronous reply\ndiff --git a/net/net-common.c b/net/net-common.c\nindex c68e19fc03e64a740d05b998ef0efb9fce311543..ec1e179f7d9cdd459dc3b8c2d13f6e478ad4ce87 100644\n--- a/net/net-common.c\n+++ b/net/net-common.c\n@@ -6,6 +6,9 @@\n #include <linux/time.h>\n #include <rtc.h>\n \n+/* Network loop state */\n+enum net_loop_state net_state;\n+\n void copy_filename(char *dst, const char *src, int size)\n {\n \tif (src && *src && (*src == '\"')) {\ndiff --git a/net/net.c b/net/net.c\nindex f579f6ac5bcced5a05a340b000a1ca9c2651c6da..03a39419d10817aff5f12badc0f604a403fe7fb2 100644\n--- a/net/net.c\n+++ b/net/net.c\n@@ -163,8 +163,6 @@ const u8 net_null_ethaddr[6];\n #if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)\n void (*push_packet)(void *, int len) = 0;\n #endif\n-/* Network loop state */\n-enum net_loop_state net_state;\n /* Tried all network devices */\n int\t\tnet_restart_wrap;\n /* Network loop restarted */\n",
    "prefixes": [
        "v2",
        "1/6"
    ]
}