get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2073326,
    "url": "http://patchwork.ozlabs.org/api/patches/2073326/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250415211819.1254435-4-jerome.forissier@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": "<20250415211819.1254435-4-jerome.forissier@linaro.org>",
    "list_archive_url": null,
    "date": "2025-04-15T21:17:38",
    "name": "[v2,03/11] net: lwip: add restart support to ping",
    "commit_ref": "7156533162afccf5f6315e021fb57c28c1d4c3d6",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e438f4a8ec22b52c447c60bdc0f706ca51d25f71",
    "submitter": {
        "id": 69192,
        "url": "http://patchwork.ozlabs.org/api/people/69192/?format=api",
        "name": "Jerome Forissier",
        "email": "jerome.forissier@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/20250415211819.1254435-4-jerome.forissier@linaro.org/mbox/",
    "series": [
        {
            "id": 452941,
            "url": "http://patchwork.ozlabs.org/api/series/452941/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=452941",
            "date": "2025-04-15T21:17:35",
            "name": "lwIP sandbox tests",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/452941/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2073326/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2073326/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=rvsEM+Ll;\n\tdkim-atps=neutral",
            "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=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=\"rvsEM+Ll\";\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=jerome.forissier@linaro.org"
        ],
        "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 4ZccTr4PSNz1yJ9\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 16 Apr 2025 07:18:56 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1BFA782BAB;\n\tTue, 15 Apr 2025 23:18:37 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8686E82B97; Tue, 15 Apr 2025 23:18:35 +0200 (CEST)",
            "from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com\n [IPv6:2a00:1450:4864:20::42e])\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 7801682B45\n for <u-boot@lists.denx.de>; Tue, 15 Apr 2025 23:18:32 +0200 (CEST)",
            "by mail-wr1-x42e.google.com with SMTP id\n ffacd0b85a97d-3912d2c89ecso5769613f8f.2\n for <u-boot@lists.denx.de>; Tue, 15 Apr 2025 14:18:32 -0700 (PDT)",
            "from builder.. ([2a01:e0a:3cb:7bb0:6ebc:6ce:770e:95f9])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-39eaf43cce3sm15530917f8f.74.2025.04.15.14.18.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 15 Apr 2025 14:18:31 -0700 (PDT)"
        ],
        "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=1744751912; x=1745356712; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=tgM4cLiCJ9uzG8h9WiqEBy5itKu7ia2cOKYoWvK8MPE=;\n b=rvsEM+LlFrvH009YfF4BA8J1bcSL4QERq7yAckJo0zXjhBhaBpDu7sEPQgJvDt9LkB\n IqikjP4OlKWgeywi3F/V+iZBzgv9Q5MiDEOMpzY91ZcTFww21MKrmZ/csSu6/s8G0iJO\n H/lhuYXhZ3heGXqS+HM4MmoCtNvbvqjP+nS3l0CRswao+eNQW+0ErZADP/kFdqnRBWg+\n qhRvRGC6ukCjwWLMvj/bTBbYHLRRqM5DmtWa0trEaIvNZ6XHFd9Z/aaaPnvp92BzdUVs\n c7SrYfitcwvJ17SN+LUhzmixB2VFWHP8S4WFDJjaudp94pZRu5drVPxFO1ByonWhwWhR\n KoTA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1744751912; x=1745356712;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=tgM4cLiCJ9uzG8h9WiqEBy5itKu7ia2cOKYoWvK8MPE=;\n b=jcr7QswXKwnQ1N9S6DWKNTB4VQTMo6bYURd65ATAgdcuHVmFlR9SYwywxlbMNKkn1I\n oX6w90BwMC2p0Qxt07lb9gtFOqgmU9VPhGQ73r4+osFpVmsN91B6CjoPX3GZy4pf4HqM\n HHuq504GK+y6hTBWUksDQheXo8sN9Dt1l3foNsk/h5SnzCZ1yGouyxQ2lPyJ4ZoHjqoY\n GXJ7W1hZ/LodjFnPeTyFNCp9On5XK9dlIQtQjptHQCeEteMwW409pVUpTRXNsivNb9q1\n JLOyXPKpTboOu1k1wovcMOecHfTW99pEdOyhvbZ/RlFbt4hAmotYIIXgQc2Wkyl0bha2\n g9iQ==",
        "X-Gm-Message-State": "AOJu0YyXghasXDSOPduNzLhjsLK1ZJEKXuynVQToDYECdiYbrZrcZX0e\n 71c+fgsEXtDdYu2K14QwxpEH2DagdPNwSdrn3smQ0lnV05rjcSGjITdYWqEH50bFAGjE2ZJqbag\n Mt0M=",
        "X-Gm-Gg": "ASbGnctVJWKaVVd8ILRi3YzblbVH9oo1HS6JGUut8OQkAYgvH8Z4Jjv5FJBbWYX7R2W\n 0o7iH4VxHiTIWhwe4DGlaZMgf/+WbUwrqE640QyGW/FeVZabvk+OBuFUQFhxpclIz/rJouw/Txx\n iHgS8vK/Xq2eXuGgC1hJtdlVUB9NRG0KS3eqSc863NNoA8bb4WkdVoLllfc4Sxt2INsV9WKaczt\n nL4UMJtlPkNoU7vnAtV9Ksq/HnVqxUZDYM0tdCOXJnqO7lGYIusg3Ze7Ywb8VEAozsWLN2UOfRK\n NK2BDU65R1F1vUO0936kkynMWxVNwmVVoH7eS7uuJUx7f0YM/XgwlEhCli0=",
        "X-Google-Smtp-Source": "\n AGHT+IEZ02ru1NAJEr808TkCoip1oMzp33P29fYTuuWQ0yyl0NmiBcqmU685sG91ATOV6Dtn3T0wyA==",
        "X-Received": "by 2002:a05:6000:4a1a:b0:39c:1257:cd41 with SMTP id\n ffacd0b85a97d-39ee2777206mr619344f8f.59.1744751911799;\n Tue, 15 Apr 2025 14:18:31 -0700 (PDT)",
        "From": "Jerome Forissier <jerome.forissier@linaro.org>",
        "To": "U-Boot mailing list <u-boot@lists.denx.de>",
        "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Simon Glass <sjg@chromium.org>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v2 03/11] net: lwip: add restart support to ping",
        "Date": "Tue, 15 Apr 2025 23:17:38 +0200",
        "Message-ID": "<20250415211819.1254435-4-jerome.forissier@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20250415211819.1254435-1-jerome.forissier@linaro.org>",
        "References": "<20250415211819.1254435-1-jerome.forissier@linaro.org>",
        "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": "Use net_start_again() in do_ping() to determine if a failed ping should\nbe restarted on a different interface.\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\nReviewed-by: Simon Glass <sjg@chromium.org>\n---\n\n(no changes since v1)\n\n net/lwip/ping.c | 12 +++++++-----\n 1 file changed, 7 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/net/lwip/ping.c b/net/lwip/ping.c\nindex 542ef2cb148..d8042ceecf9 100644\n--- a/net/lwip/ping.c\n+++ b/net/lwip/ping.c\n@@ -168,11 +168,13 @@ int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])\n \tif (!ipaddr_aton(argv[1], &addr))\n \t\treturn CMD_RET_USAGE;\n \n-\tif (net_lwip_eth_start() < 0)\n-\t\treturn CMD_RET_FAILURE;\n-\n-\tif (ping_loop(eth_get_dev(), &addr) < 0)\n-\t\treturn CMD_RET_FAILURE;\n+restart:\n+\tif (net_lwip_eth_start() < 0 || ping_loop(eth_get_dev(), &addr) < 0) {\n+\t\tif (net_start_again() == 0)\n+\t\t\tgoto restart;\n+\t\telse\n+\t\t\treturn CMD_RET_FAILURE;\n+\t}\n \n \treturn CMD_RET_SUCCESS;\n }\n",
    "prefixes": [
        "v2",
        "03/11"
    ]
}