get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2223969,
    "url": "http://patchwork.ozlabs.org/api/patches/2223969/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260416131453.308611-7-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": "<20260416131453.308611-7-pablo@netfilter.org>",
    "list_archive_url": null,
    "date": "2026-04-16T13:14:48",
    "name": "[net,06/11] netfilter: xtables: restrict several matches to inet family",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4c40ae8f6e7e380e2d900c29646dc302962a00c8",
    "submitter": {
        "id": 1315,
        "url": "http://patchwork.ozlabs.org/api/people/1315/?format=api",
        "name": "Pablo Neira Ayuso",
        "email": "pablo@netfilter.org"
    },
    "delegate": {
        "id": 11902,
        "url": "http://patchwork.ozlabs.org/api/users/11902/?format=api",
        "username": "strlen",
        "first_name": "Florian",
        "last_name": "Westphal",
        "email": "fw@strlen.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260416131453.308611-7-pablo@netfilter.org/mbox/",
    "series": [
        {
            "id": 500161,
            "url": "http://patchwork.ozlabs.org/api/series/500161/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=500161",
            "date": "2026-04-16T13:14:48",
            "name": "[net,01/11] netfilter: arp_tables: fix IEEE1394 ARP payload parsing in arp_packet_match()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500161/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223969/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223969/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <netfilter-devel+bounces-11974-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=ZMXAQXrh;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11974-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=\"ZMXAQXrh\"",
            "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 sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4fxJSK0h77z1yG9\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 23:16:33 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id A41E9306D95E\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 13:15:47 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7A0E43BC69D;\n\tThu, 16 Apr 2026 13:15:12 +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 A59871F09A8;\n\tThu, 16 Apr 2026 13:15:10 +0000 (UTC)",
            "from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id 63BC260253;\n\tThu, 16 Apr 2026 15:15:08 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776345312; cv=none;\n b=u547kjPQxcgUylo3QJca8G+aHIY2ciPG8zPr1LInnd0jq1YrTavPgDhNibSdyN7ccsVaoK2bA8/4tFNpJXhTqxl0F8X55Adx0IQPDEsXPISpgz2QS7LLbGEJ9jiHCYcaZDDY70BogPO4QhpypxnWVB7zHI0bt1QcAjOYnaenvDg=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776345312; c=relaxed/simple;\n\tbh=rbIvlvw0B6QuUQslAtCLoplcDKyo0sCdkYuUELvG14M=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=gickTyPJ6Ux0GwE0ufmFyZTsvI0FFG5NRVM/20jbZLdf8VMrzm7gKEziXoG75J7u11zvMzCdl/iPaosl80cVHCV1GL/0FRxVDFWgnGnneKK8G1et3Cc3WnmoTDnCFJRzPkmH7JYxLeY7a5ItGfgwWREthpoeQeTJyjdh2RHkFxk=",
        "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=ZMXAQXrh; 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=1776345309;\n\tbh=gGNB9aJV8o7MG46EcPHArVIj/WD14c4FSu6EJOu+zTM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=ZMXAQXrhZoU536q1niJYyKU2Sk/X+x6yYCCvFuOxR32ewVZtQ+TKwuJVwp4l7l04n\n\t Bvg3wW7aeX0YIT/B28X15s+B7ho94ZngqNR/lJiS+I6VlKdpr6ALVWFIi/A9AoSdH5\n\t aZhndHmIVB/mRTRwSBrx0YUQ6pd7/F9R6cCxBq/XcHdKQ87ka2YXk9oE/6KdnIWtia\n\t jhbuNJRZw7qgbTLqL+CZIxgyg8P3WVqnvvambWv7W5G6IdlfXjze9Zqij40CQAgYry\n\t Pi51GxubVneBVJ/mSESTFXG0EKcLO/iiiw1izb7SLkLBmK0MNn93ZjPRAJtRQwe3LJ\n\t RhBNzVNv1FCxw==",
        "From": "Pablo Neira Ayuso <pablo@netfilter.org>",
        "To": "netfilter-devel@vger.kernel.org",
        "Cc": "davem@davemloft.net,\n\tnetdev@vger.kernel.org,\n\tkuba@kernel.org,\n\tpabeni@redhat.com,\n\tedumazet@google.com,\n\tfw@strlen.de,\n\thorms@kernel.org",
        "Subject": "[PATCH net 06/11] netfilter: xtables: restrict several matches to\n inet family",
        "Date": "Thu, 16 Apr 2026 15:14:48 +0200",
        "Message-ID": "<20260416131453.308611-7-pablo@netfilter.org>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260416131453.308611-1-pablo@netfilter.org>",
        "References": "<20260416131453.308611-1-pablo@netfilter.org>",
        "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": "This is a partial revert of:\n\n  commit ab4f21e6fb1c (\"netfilter: xtables: use NFPROTO_UNSPEC in more extensions\")\n\nto allow ipv4 and ipv6 only.\n\n- xt_mac\n- xt_owner\n- xt_physdev\n\nThese extensions are not used by ebtables in userspace.\n\nMoreover, xt_realm is only for ipv4, since dst->tclassid is ipv4\nspecific.\n\nFixes: ab4f21e6fb1c (\"netfilter: xtables: use NFPROTO_UNSPEC in more extensions\")\nReported-by: \"Kito Xu (veritas501)\" <hxzene@gmail.com>\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\n net/netfilter/xt_mac.c     | 34 +++++++++++++++++++++++-----------\n net/netfilter/xt_owner.c   | 37 +++++++++++++++++++++++++------------\n net/netfilter/xt_physdev.c | 29 +++++++++++++++++++----------\n net/netfilter/xt_realm.c   |  2 +-\n 4 files changed, 68 insertions(+), 34 deletions(-)",
    "diff": "diff --git a/net/netfilter/xt_mac.c b/net/netfilter/xt_mac.c\nindex 81649da57ba5..bd2354760895 100644\n--- a/net/netfilter/xt_mac.c\n+++ b/net/netfilter/xt_mac.c\n@@ -38,25 +38,37 @@ static bool mac_mt(const struct sk_buff *skb, struct xt_action_param *par)\n \treturn ret;\n }\n \n-static struct xt_match mac_mt_reg __read_mostly = {\n-\t.name      = \"mac\",\n-\t.revision  = 0,\n-\t.family    = NFPROTO_UNSPEC,\n-\t.match     = mac_mt,\n-\t.matchsize = sizeof(struct xt_mac_info),\n-\t.hooks     = (1 << NF_INET_PRE_ROUTING) | (1 << NF_INET_LOCAL_IN) |\n-\t             (1 << NF_INET_FORWARD),\n-\t.me        = THIS_MODULE,\n+static struct xt_match mac_mt_reg[] __read_mostly = {\n+\t{\n+\t\t.name\t\t= \"mac\",\n+\t\t.family\t\t= NFPROTO_IPV4,\n+\t\t.match\t\t= mac_mt,\n+\t\t.matchsize\t= sizeof(struct xt_mac_info),\n+\t\t.hooks\t\t= (1 << NF_INET_PRE_ROUTING) |\n+\t\t\t\t  (1 << NF_INET_LOCAL_IN) |\n+\t\t\t\t  (1 << NF_INET_FORWARD),\n+\t\t.me\t\t= THIS_MODULE,\n+\t},\n+\t{\n+\t\t.name\t\t= \"mac\",\n+\t\t.family\t\t= NFPROTO_IPV6,\n+\t\t.match\t\t= mac_mt,\n+\t\t.matchsize\t= sizeof(struct xt_mac_info),\n+\t\t.hooks\t\t= (1 << NF_INET_PRE_ROUTING) |\n+\t\t\t\t  (1 << NF_INET_LOCAL_IN) |\n+\t\t\t\t  (1 << NF_INET_FORWARD),\n+\t\t.me\t\t= THIS_MODULE,\n+\t},\n };\n \n static int __init mac_mt_init(void)\n {\n-\treturn xt_register_match(&mac_mt_reg);\n+\treturn xt_register_matches(mac_mt_reg, ARRAY_SIZE(mac_mt_reg));\n }\n \n static void __exit mac_mt_exit(void)\n {\n-\txt_unregister_match(&mac_mt_reg);\n+\txt_unregister_matches(mac_mt_reg, ARRAY_SIZE(mac_mt_reg));\n }\n \n module_init(mac_mt_init);\ndiff --git a/net/netfilter/xt_owner.c b/net/netfilter/xt_owner.c\nindex 50332888c8d2..7be2fe22b067 100644\n--- a/net/netfilter/xt_owner.c\n+++ b/net/netfilter/xt_owner.c\n@@ -127,26 +127,39 @@ owner_mt(const struct sk_buff *skb, struct xt_action_param *par)\n \treturn true;\n }\n \n-static struct xt_match owner_mt_reg __read_mostly = {\n-\t.name       = \"owner\",\n-\t.revision   = 1,\n-\t.family     = NFPROTO_UNSPEC,\n-\t.checkentry = owner_check,\n-\t.match      = owner_mt,\n-\t.matchsize  = sizeof(struct xt_owner_match_info),\n-\t.hooks      = (1 << NF_INET_LOCAL_OUT) |\n-\t              (1 << NF_INET_POST_ROUTING),\n-\t.me         = THIS_MODULE,\n+static struct xt_match owner_mt_reg[] __read_mostly = {\n+\t{\n+\t\t.name       = \"owner\",\n+\t\t.revision   = 1,\n+\t\t.family     = NFPROTO_IPV4,\n+\t\t.checkentry = owner_check,\n+\t\t.match      = owner_mt,\n+\t\t.matchsize  = sizeof(struct xt_owner_match_info),\n+\t\t.hooks      = (1 << NF_INET_LOCAL_OUT) |\n+\t\t\t      (1 << NF_INET_POST_ROUTING),\n+\t\t.me         = THIS_MODULE,\n+\t},\n+\t{\n+\t\t.name       = \"owner\",\n+\t\t.revision   = 1,\n+\t\t.family     = NFPROTO_IPV6,\n+\t\t.checkentry = owner_check,\n+\t\t.match      = owner_mt,\n+\t\t.matchsize  = sizeof(struct xt_owner_match_info),\n+\t\t.hooks      = (1 << NF_INET_LOCAL_OUT) |\n+\t\t\t      (1 << NF_INET_POST_ROUTING),\n+\t\t.me         = THIS_MODULE,\n+\t}\n };\n \n static int __init owner_mt_init(void)\n {\n-\treturn xt_register_match(&owner_mt_reg);\n+\treturn xt_register_matches(owner_mt_reg, ARRAY_SIZE(owner_mt_reg));\n }\n \n static void __exit owner_mt_exit(void)\n {\n-\txt_unregister_match(&owner_mt_reg);\n+\txt_unregister_matches(owner_mt_reg, ARRAY_SIZE(owner_mt_reg));\n }\n \n module_init(owner_mt_init);\ndiff --git a/net/netfilter/xt_physdev.c b/net/netfilter/xt_physdev.c\nindex 343e65f377d4..130842c35c6f 100644\n--- a/net/netfilter/xt_physdev.c\n+++ b/net/netfilter/xt_physdev.c\n@@ -115,24 +115,33 @@ static int physdev_mt_check(const struct xt_mtchk_param *par)\n \treturn 0;\n }\n \n-static struct xt_match physdev_mt_reg __read_mostly = {\n-\t.name       = \"physdev\",\n-\t.revision   = 0,\n-\t.family     = NFPROTO_UNSPEC,\n-\t.checkentry = physdev_mt_check,\n-\t.match      = physdev_mt,\n-\t.matchsize  = sizeof(struct xt_physdev_info),\n-\t.me         = THIS_MODULE,\n+static struct xt_match physdev_mt_reg[] __read_mostly = {\n+\t{\n+\t\t.name\t\t= \"physdev\",\n+\t\t.family\t\t= NFPROTO_IPV4,\n+\t\t.checkentry\t= physdev_mt_check,\n+\t\t.match\t\t= physdev_mt,\n+\t\t.matchsize\t= sizeof(struct xt_physdev_info),\n+\t\t.me\t\t= THIS_MODULE,\n+\t},\n+\t{\n+\t\t.name\t\t= \"physdev\",\n+\t\t.family\t\t= NFPROTO_IPV6,\n+\t\t.checkentry\t= physdev_mt_check,\n+\t\t.match\t\t= physdev_mt,\n+\t\t.matchsize\t= sizeof(struct xt_physdev_info),\n+\t\t.me\t\t= THIS_MODULE,\n+\t},\n };\n \n static int __init physdev_mt_init(void)\n {\n-\treturn xt_register_match(&physdev_mt_reg);\n+\treturn xt_register_matches(physdev_mt_reg, ARRAY_SIZE(physdev_mt_reg));\n }\n \n static void __exit physdev_mt_exit(void)\n {\n-\txt_unregister_match(&physdev_mt_reg);\n+\txt_unregister_matches(physdev_mt_reg, ARRAY_SIZE(physdev_mt_reg));\n }\n \n module_init(physdev_mt_init);\ndiff --git a/net/netfilter/xt_realm.c b/net/netfilter/xt_realm.c\nindex 6df485f4403d..61b2f1e58d15 100644\n--- a/net/netfilter/xt_realm.c\n+++ b/net/netfilter/xt_realm.c\n@@ -33,7 +33,7 @@ static struct xt_match realm_mt_reg __read_mostly = {\n \t.matchsize\t= sizeof(struct xt_realm_info),\n \t.hooks\t\t= (1 << NF_INET_POST_ROUTING) | (1 << NF_INET_FORWARD) |\n \t\t\t  (1 << NF_INET_LOCAL_OUT) | (1 << NF_INET_LOCAL_IN),\n-\t.family\t\t= NFPROTO_UNSPEC,\n+\t.family\t\t= NFPROTO_IPV4,\n \t.me\t\t= THIS_MODULE\n };\n \n",
    "prefixes": [
        "net",
        "06/11"
    ]
}