get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231329,
    "url": "http://patchwork.ozlabs.org/api/patches/2231329/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260430154217.260522-1-pablo@netfilter.org/",
    "project": {
        "id": 26,
        "url": "http://patchwork.ozlabs.org/api/projects/26/?format=api",
        "name": "Netfilter Development",
        "link_name": "netfilter-devel",
        "list_id": "netfilter-devel.vger.kernel.org",
        "list_email": "netfilter-devel@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260430154217.260522-1-pablo@netfilter.org>",
    "list_archive_url": null,
    "date": "2026-04-30T15:42:15",
    "name": "[nf,v6,1/3] netfilter: flowtable: ensure sufficient headroom in xmit path",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5f3c343909659312cc5092379b127dacb59c1a84",
    "submitter": {
        "id": 1315,
        "url": "http://patchwork.ozlabs.org/api/people/1315/?format=api",
        "name": "Pablo Neira Ayuso",
        "email": "pablo@netfilter.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260430154217.260522-1-pablo@netfilter.org/mbox/",
    "series": [
        {
            "id": 502332,
            "url": "http://patchwork.ozlabs.org/api/series/502332/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=502332",
            "date": "2026-04-30T15:42:16",
            "name": "[nf,v6,1/3] netfilter: flowtable: ensure sufficient headroom in xmit path",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/502332/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231329/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231329/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <netfilter-devel+bounces-12339-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "netfilter-devel@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=netfilter.org header.i=@netfilter.org\n header.a=rsa-sha256 header.s=2025 header.b=WsHQu/hF;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-12339-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=\"WsHQu/hF\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.70.190.124",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=netfilter.org"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\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 4g5zJY0z8Rz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 01:54:53 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 9B1F7303D63C\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 15:42:45 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3F62F3E024C;\n\tThu, 30 Apr 2026 15:42:44 +0000 (UTC)",
            "from mail.netfilter.org (mail.netfilter.org [217.70.190.124])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C5D5376492\n\tfor <netfilter-devel@vger.kernel.org>; Thu, 30 Apr 2026 15:42:37 +0000 (UTC)",
            "from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id EE7056024E\n\tfor <netfilter-devel@vger.kernel.org>; Thu, 30 Apr 2026 17:42:35 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777563760; cv=none;\n b=VNfOPlnPcpt7W+PgqsqI4Z8szJjskLl4cWWYzvvIC3YZZVc98IskYA19AzOh6ZSCDsUQSNUjZeuHyA6il5dAnz97iyW6o8qMmk0KnUiVDT3kt/jrc9kPTY5DtM3+bPzoGzmy0AmG5/eaqBi6DVonAy7ZYCyfQuMx043Qtp/BsA4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777563760; c=relaxed/simple;\n\tbh=fhC5YgvOQrru0Gn9OMkr4N4o05zWAOaafGPf0yiLYIY=;\n\th=From:To:Subject:Date:Message-ID:MIME-Version;\n b=aCmjC+XUkVIy9yRIjxHHOi/BXw8+y8SPcxrXQCdnBomgfqith1dbhGxVsLvEp/mjjAN0tc2wWCIs43fIsOnfInLm9B1krVObAlvFC+YN9q7vNoZUAkQ/o/Fr8tMnCs6IeRaSSIFhojWd7J5k27574ONFoU3d4uTgvAGrY/64blY=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org;\n spf=pass smtp.mailfrom=netfilter.org;\n dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=WsHQu/hF; arc=none smtp.client-ip=217.70.190.124",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;\n\ts=2025; t=1777563756;\n\tbh=B120GNARbXsfG0kr8qScIJm0en0cRwclFP6IhtwAsxk=;\n\th=From:To:Subject:Date:From;\n\tb=WsHQu/hF0ImoWWCR0I4gu2YfdZMP6tBIDCS/1QeMyAmyvGTF8Y38FZy76VyeSKKjx\n\t ZXO3nHNSat37iEaK38lGp1Rqa806eCgWE+UrFOqq/iWTPkfQBr7MBVodUTfd/87bz5\n\t BgOTvTguY85B+gZN6CzEL33miFSennODLGwoccEzzXxFX09tnPCqm8JKpGLPg+whHw\n\t DkkpF4dad3sSVDhgfM9RaFhjtsYvN9exOO/2meyoPiSoCGAUWUctBSYL+zVdyI0ciU\n\t D4NYDp8p0GB3eswxL4hDAXuhItBS7MIVtoqIuvu3g9dBT3+ze8m+DeyTWhxHYuNj6p\n\t SqNP8GflMzc4Q==",
        "From": "Pablo Neira Ayuso <pablo@netfilter.org>",
        "To": "netfilter-devel@vger.kernel.org",
        "Subject": "[PATCH nf,v6 1/3] netfilter: flowtable: ensure sufficient headroom in\n xmit path",
        "Date": "Thu, 30 Apr 2026 17:42:15 +0200",
        "Message-ID": "<20260430154217.260522-1-pablo@netfilter.org>",
        "X-Mailer": "git-send-email 2.47.3",
        "Precedence": "bulk",
        "X-Mailing-List": "netfilter-devel@vger.kernel.org",
        "List-Id": "<netfilter-devel.vger.kernel.org>",
        "List-Subscribe": "<mailto:netfilter-devel+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:netfilter-devel+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Check for headroom and call skb_expand_head() like in the IP output\npath to ensure there is sufficient headroom for the mac header when\nforwarding this packet as suggested by sashiko.\n\nFixes: b5964aac51e0 (\"netfilter: flowtable: consolidate xmit path\")\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\nv6: new in this series, suggested by sashiko.\n\n net/netfilter/nf_flow_table_ip.c | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/net/netfilter/nf_flow_table_ip.c b/net/netfilter/nf_flow_table_ip.c\nindex dbd7644fdbeb..8d5fb7e940a1 100644\n--- a/net/netfilter/nf_flow_table_ip.c\n+++ b/net/netfilter/nf_flow_table_ip.c\n@@ -471,8 +471,17 @@ struct nf_flow_xmit {\n static unsigned int nf_flow_queue_xmit(struct net *net, struct sk_buff *skb,\n \t\t\t\t       struct nf_flow_xmit *xmit)\n {\n-\tskb->dev = xmit->outdev;\n-\tdev_hard_header(skb, skb->dev, ntohs(skb->protocol),\n+\tstruct net_device *dev = xmit->outdev;\n+\tunsigned int hh_len = LL_RESERVED_SPACE(dev);\n+\n+\tif (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) {\n+\t\tskb = skb_expand_head(skb, hh_len);\n+\t\tif (!skb)\n+\t\t\treturn NF_STOLEN;\n+\t}\n+\n+\tskb->dev = dev;\n+\tdev_hard_header(skb, dev, ntohs(skb->protocol),\n \t\t\txmit->dest, xmit->source, skb->len);\n \tdev_queue_xmit(skb);\n \n",
    "prefixes": [
        "nf",
        "v6",
        "1/3"
    ]
}