get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2056054,
    "url": "http://patchwork.ozlabs.org/api/patches/2056054/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250306143224.3080316-3-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": "<20250306143224.3080316-3-jerome.forissier@linaro.org>",
    "list_archive_url": null,
    "date": "2025-03-06T14:32:22",
    "name": "[2/2] net: lwip: add CONFIG_LWIP_DEBUG_RXTX",
    "commit_ref": "64ce9bfc6d53423d4f6d382837a33c3dffb152af",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f6f24bebba63dd5e9285cb416193892e0104b3c6",
    "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/20250306143224.3080316-3-jerome.forissier@linaro.org/mbox/",
    "series": [
        {
            "id": 447290,
            "url": "http://patchwork.ozlabs.org/api/series/447290/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=447290",
            "date": "2025-03-06T14:32:20",
            "name": "net: lwip: rename output function, add packet dump",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/447290/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2056054/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2056054/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=Z8SsAGIu;\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=\"Z8SsAGIu\";\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\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 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4Z7sNc3fkdz1yKc\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  7 Mar 2025 01:33:36 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 59D3681420;\n\tThu,  6 Mar 2025 15:33:03 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 409B481417; Thu,  6 Mar 2025 15:33:01 +0100 (CET)",
            "from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com\n [IPv6:2a00:1450:4864:20::42c])\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 3F38C81253\n for <u-boot@lists.denx.de>; Thu,  6 Mar 2025 15:32:59 +0100 (CET)",
            "by mail-wr1-x42c.google.com with SMTP id\n ffacd0b85a97d-39130ee05b0so127801f8f.3\n for <u-boot@lists.denx.de>; Thu, 06 Mar 2025 06:32:59 -0800 (PST)",
            "from builder.. ([2a01:e0a:3cb:7bb0:af71:dfb2:66ef:80c3])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-43bdd9470e2sm21561065e9.33.2025.03.06.06.32.57\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 06 Mar 2025 06:32:58 -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=1741271578; x=1741876378; 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=6QCKbKpoW7qtcnKQqEqm3Pt/MttXIhUkzBeb9zyPhNg=;\n b=Z8SsAGIulmA2uyyfpo9SlD2YR5+rs1z6SzUvgjUUzycG41DsoBB7A02Gh6V7Efhm5F\n G8u4hajuxsq0vMKc3dfGC0sXK+CgD3AfzLsTv5vhxrIUvpRnpmeV33YBn7sAfAVIuc8r\n FvT8YP+xSRYi3BX/uHBSYef+3k/YjY03tvJpFFaKe6eIePgi3t3AtSCqgGFF09uzSdmj\n FdouKkOh0kj3UW/KpJon+rMRnR3HqcTHf0Pey+AjRz6JFkP7UNSsoh+bIE2TtzjlILRM\n /D80VKbqrxr2gzc3yG7wNaRKNS4qJaTdK9oytWUAAOeH5SOq0qZPCxjK0QYpkybunjrm\n M9Cg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1741271578; x=1741876378;\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=6QCKbKpoW7qtcnKQqEqm3Pt/MttXIhUkzBeb9zyPhNg=;\n b=Wk16C++SKUo3x9WhFBRJFnDTRBBGba/NONRDneZHVeAaKSwmAGBShObjN2+k23X+ZM\n jqCDhuYfaa+L0PdetyUerSgdl4sUtd3H1/NJeVJwr2YkHaQeLyoAObCeG0TOyC1oVCpF\n U7TFTUCQWJ55xoVSvBvrnCV+RGau9+zTgDUkkZete3o4bPf/UivdbDSBhwn1P9fpT5tb\n XI+BFowkQ+idbd+iwkHN+4j0zPn+RwLS42MRl/QzPPYXkGZbGfUm1e7I9IxwmUSr7uFf\n YdwFgchMSx8haHag8Q/q11jBwB/Cq20m6fjUycguQ+DH7+3EaVy4+CnH2wwlBqOfYHth\n 4z6g==",
        "X-Gm-Message-State": "AOJu0Ywmnx326RHkYOatCJOfrsXtU0UJ9IzxQ8Y7KKFJkEvcmzlwX6WC\n 6hdnoQPt5Hy8BZJa26EGQKn+X1G+yXeNNEjNVMgDSRsNNcRWlwpr0hMPeq1KihQIP0vhUDEFdw+\n q",
        "X-Gm-Gg": "ASbGnctgF22sS5BfBjyymxw+2XQ454+vVPC7pQTKjBcndwjmSR3Zu3PcDAgIx2Sg8nd\n 5r4YgA9MCvuC/69KK8v4Swd7QCoJAEVu8inWy9KZrvTqsSiM3WEcyRB5021rwoRKIz9Qos7DfWX\n nq07e084nH0ohO+NlE0N6SZbWcXTJxGdUKbL6TqfSZHmB/nZ3CHSPmX6tj5Bs/o1flgjgF/RZIN\n HmWdeLHpL8kXa8PpneIBNPXzTGth45dL0IX93xbmO/eAvhG2pSBPbJG0RKfchBEFtt4qXV3yXek\n 5aZzFBqb4S6eTLtrQqFVCkUYoKQCD7UoVvdXkPhlk8gH5TSpLhmKVA==",
        "X-Google-Smtp-Source": "\n AGHT+IH+8LB7bDg69JSVECviSN/esVStzfZz0GA8RdyVMIZNnrZZbEBcZy12fF3BiB9vE3DImDoMMg==",
        "X-Received": "by 2002:a5d:5f91:0:b0:391:fcc:9ee8 with SMTP id\n ffacd0b85a97d-3911f740cb5mr7425482f8f.23.1741271578440;\n Thu, 06 Mar 2025 06:32:58 -0800 (PST)",
        "From": "Jerome Forissier <jerome.forissier@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Jerome Forissier <jerome.forissier@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>,\n Simon Glass <sjg@chromium.org>",
        "Subject": "[PATCH 2/2] net: lwip: add CONFIG_LWIP_DEBUG_RXTX",
        "Date": "Thu,  6 Mar 2025 15:32:22 +0100",
        "Message-ID": "<20250306143224.3080316-3-jerome.forissier@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20250306143224.3080316-1-jerome.forissier@linaro.org>",
        "References": "<20250306143224.3080316-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": "Add Kconfig symbol LWIP_DEBUG_RXTX to dump the incoming and outgoing\npackets when NET_LWIP=y.\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\n---\n net/lwip/Kconfig    |  6 ++++++\n net/lwip/net-lwip.c | 14 ++++++++++++++\n 2 files changed, 20 insertions(+)",
    "diff": "diff --git a/net/lwip/Kconfig b/net/lwip/Kconfig\nindex 40345ced9c9..d28a8a7df94 100644\n--- a/net/lwip/Kconfig\n+++ b/net/lwip/Kconfig\n@@ -10,6 +10,12 @@ config LWIP_DEBUG\n \t  Prints messages to the console regarding network packets that go in\n           and out of the lwIP library.\n \n+config LWIP_DEBUG_RXTX\n+\tbool \"Dump packets sent and received by lwIP\"\n+\thelp\n+\t  Performs an hexadecimal & ASCII dump of the data received and sent by\n+\t  the lwIP network stack.\n+\n config LWIP_ASSERT\n \tbool \"Enable assertions in the lwIP library\"\n \thelp\ndiff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c\nindex 5a2a86686f4..c00a7fe97cd 100644\n--- a/net/lwip/net-lwip.c\n+++ b/net/lwip/net-lwip.c\n@@ -5,6 +5,7 @@\n #include <command.h>\n #include <dm/device.h>\n #include <dm/uclass.h>\n+#include <hexdump.h>\n #include <lwip/ip4_addr.h>\n #include <lwip/err.h>\n #include <lwip/netif.h>\n@@ -36,6 +37,12 @@ static err_t net_lwip_tx(struct netif *netif, struct pbuf *p)\n \tvoid *pp = NULL;\n \tint err;\n \n+\tif (CONFIG_IS_ENABLED(LWIP_DEBUG_RXTX)) {\n+\t\tprintf(\"net_lwip_tx: %u bytes, udev %s\\n\", p->len, udev->name);\n+\t\tprint_hex_dump(\"net_lwip_tx: \", 0, 16, 1, p->payload, p->len,\n+\t\t\t       true);\n+\t}\n+\n \tif ((unsigned long)p->payload % PKTALIGN) {\n \t\t/*\n \t\t * Some net drivers have strict alignment requirements and may\n@@ -265,6 +272,13 @@ int net_lwip_rx(struct udevice *udev, struct netif *netif)\n \t\tflags = 0;\n \n \t\tif (len > 0) {\n+\t\t\tif (CONFIG_IS_ENABLED(LWIP_DEBUG_RXTX)) {\n+\t\t\t\tprintf(\"net_lwip_tx: %u bytes, udev %s \\n\", len,\n+\t\t\t\t       udev->name);\n+\t\t\t\tprint_hex_dump(\"net_lwip_rx: \", 0, 16, 1,\n+\t\t\t\t\t       packet, len, true);\n+\t\t\t}\n+\n \t\t\tpbuf = alloc_pbuf_and_copy(packet, len);\n \t\t\tif (pbuf)\n \t\t\t\tnetif->input(pbuf, netif);\n",
    "prefixes": [
        "2/2"
    ]
}