Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218428/?format=api
{ "id": 2218428, "url": "http://patchwork.ozlabs.org/api/patches/2218428/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260401074509.1897527-5-dwmw2@infradead.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": "<20260401074509.1897527-5-dwmw2@infradead.org>", "list_archive_url": null, "date": "2026-04-01T07:44:18", "name": "[4/6] net: Make IPv4-only Kconfig options depend on LEGACY_IP", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5d104ca2c1298792b2ef50a9aec8c69ad2e8ab4a", "submitter": { "id": 26, "url": "http://patchwork.ozlabs.org/api/people/26/?format=api", "name": "David Woodhouse", "email": "dwmw2@infradead.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260401074509.1897527-5-dwmw2@infradead.org/mbox/", "series": [ { "id": 498288, "url": "http://patchwork.ozlabs.org/api/series/498288/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=498288", "date": "2026-04-01T07:44:20", "name": "Deprecate Legacy IP", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498288/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218428/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218428/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <netfilter-devel+bounces-11535-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 secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=desiato.20200630 header.b=QnCIxoUy;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11535-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org\n header.b=\"QnCIxoUy\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=90.155.92.199", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=infradead.org", "smtp.subspace.kernel.org;\n spf=none smtp.mailfrom=desiato.srs.infradead.org" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fly3v5ppFz1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 18:56:27 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id AE86A300F9CC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 1 Apr 2026 07:46:37 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 72384398914;\n\tWed, 1 Apr 2026 07:45:48 +0000 (UTC)", "from desiato.infradead.org (desiato.infradead.org [90.155.92.199])\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 9144B389470;\n\tWed, 1 Apr 2026 07:45:44 +0000 (UTC)", "from [2001:8b0:10b:1::425] (helo=i7.infradead.org)\n\tby desiato.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7qGN-0000000HLQR-0Bwg;\n\tWed, 01 Apr 2026 07:45:19 +0000", "from dwoodhou by i7.infradead.org with local (Exim 4.98.2 #2 (Red\n Hat Linux))\n\tid 1w7qGM-00000007xeH-2STV;\n\tWed, 01 Apr 2026 08:45:18 +0100" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775029547; cv=none;\n b=N8P7FIWVLlONEjgcpcbUHJjvfje34QRDPoO5hLPHEeTWd9fAOYt7OrG1twCPLQ3FqbpZvEIudK6CmTM9R6DbB8OLlHLafuKu/uvEyZU8GTsPOElXYGC0+TwqjHddzZP6S8/bPxgUM6xC6+RIJ4OOuu14B4eS0wJmoMpTaRSntXE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775029547; c=relaxed/simple;\n\tbh=fz1vVpZ+XixTWvLK2fUSSSwxU2g035/t57UleVQMxCs=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=dun3n6+MRi9b6AZk2qp5D5SOrbFlO6a4XIXqtoSmuKvX2GaVKdha/ZTwlypZnOGqyftnh+6Iv9NQXNxfX0l5Qj9WQvdWDj6tuEkGMnhqzIe3FMpve7oOxkE2fe3KN2ET9kgnTtDfb3zCULWoj3JV75aIaUqGnKWF1X2RDui0FJM=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=infradead.org;\n spf=none smtp.mailfrom=desiato.srs.infradead.org;\n dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org\n header.b=QnCIxoUy; arc=none smtp.client-ip=90.155.92.199", "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding:\n\tContent-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:\n\tFrom:Reply-To:Cc:Content-ID:Content-Description;\n\tbh=7U4Yiy0/CwnvZWt3C0BtwDa2Bz5Q5jm510x17jkSpQk=; b=QnCIxoUyOmPrAkseFjcccD4s1i\n\tJKfLE7Jom17QlfF7S1IPYullmh2F3/ktBNXwJtxAGsOTgDCOiJWXNBKrEVRZ7iSEc36uqowLb3S7S\n\tBV99jdHasZRiZk8U5OleuPJgXdXYle1tJH1CZy4rg4gBT9EPLs2Ahr0cAKXcgZFRfJ05SDokSHTfN\n\tjXPrhzGgoWmGQJy+kbKGacztvzPAG0VZY7QODBlz2dhxkauyvny4QYD1Sn93zFjoRwz7rtxIeRSFT\n\t/5vAOJQYyW6nfO9WESy0lFzuia8lcNbI1r3pmzzQ440e2a0h03XVEvkS4BGy8eJMOxAk8Vd/9wfQn\n\tN1CDYbUQ==;", "From": "David Woodhouse <dwmw2@infradead.org>", "To": "Saeed Mahameed <saeedm@nvidia.com>,\n\tLeon Romanovsky <leon@kernel.org>,\n\tTariq Toukan <tariqt@nvidia.com>,\n\tMark Bloch <mbloch@nvidia.com>,\n\tAndrew Lunn <andrew+netdev@lunn.ch>,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tEric Dumazet <edumazet@google.com>,\n\tJakub Kicinski <kuba@kernel.org>,\n\tPaolo Abeni <pabeni@redhat.com>,\n\tSimon Horman <horms@kernel.org>,\n\tNikolay Aleksandrov <razor@blackwall.org>,\n\tIdo Schimmel <idosch@nvidia.com>,\n\tMartin KaFai Lau <martin.lau@linux.dev>,\n\tDaniel Borkmann <daniel@iogearbox.net>,\n\tJohn Fastabend <john.fastabend@gmail.com>,\n\tStanislav Fomichev <sdf@fomichev.me>,\n\tAlexei Starovoitov <ast@kernel.org>,\n\tAndrii Nakryiko <andrii@kernel.org>,\n\tEduard Zingerman <eddyz87@gmail.com>,\n\tSong Liu <song@kernel.org>,\n\tYonghong Song <yonghong.song@linux.dev>,\n\tKP Singh <kpsingh@kernel.org>,\n\tHao Luo <haoluo@google.com>,\n\tJiri Olsa <jolsa@kernel.org>,\n\tKuniyuki Iwashima <kuniyu@google.com>,\n\tWillem de Bruijn <willemb@google.com>,\n\tDavid Ahern <dsahern@kernel.org>,\n\tNeal Cardwell <ncardwell@google.com>,\n\tJohannes Berg <johannes@sipsolutions.net>,\n\tPablo Neira Ayuso <pablo@netfilter.org>,\n\tFlorian Westphal <fw@strlen.de>,\n\tPhil Sutter <phil@nwl.cc>,\n\tGuillaume Nault <gnault@redhat.com>,\n\tDavid Woodhouse <dwmw@amazon.co.uk>,\n\tKees Cook <kees@kernel.org>,\n\tAlexei Lazar <alazar@nvidia.com>,\n\tGal Pressman <gal@nvidia.com>,\n\tPaul Moore <paul@paul-moore.com>,\n\tnetdev@vger.kernel.org,\n\tlinux-rdma@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\toss-drivers@corigine.com,\n\tbridge@lists.linux.dev,\n\tbpf@vger.kernel.org,\n\tlinux-wireless@vger.kernel.org,\n\tnetfilter-devel@vger.kernel.org,\n\tcoreteam@netfilter.org,\n\ttorvalds@linux-foundation.org,\n\tjon.maddog.hall@gmail.com", "Subject": "[PATCH 4/6] net: Make IPv4-only Kconfig options depend on LEGACY_IP", "Date": "Wed, 1 Apr 2026 08:44:18 +0100", "Message-ID": "<20260401074509.1897527-5-dwmw2@infradead.org>", "X-Mailer": "git-send-email 2.51.0", "In-Reply-To": "<20260401074509.1897527-1-dwmw2@infradead.org>", "References": "<20260401074509.1897527-1-dwmw2@infradead.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-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Sender": "David Woodhouse <dwmw2@infradead.org>", "X-SRS-Rewrite": "SMTP reverse-path rewritten from <dwmw2@infradead.org> by\n desiato.infradead.org. See http://www.infradead.org/rpr.html" }, "content": "From: David Woodhouse <dwmw@amazon.co.uk>\n\nAdd 'depends on LEGACY_IP' to Kconfig options that are purely\nIPv4-specific, so they are automatically disabled when LEGACY_IP=n.\n\nIPv4-only options gated:\n - IP_MULTICAST, IP_ADVANCED_ROUTER, IP_FIB_TRIE_STATS,\n IP_MULTIPLE_TABLES, IP_ROUTE_MULTIPATH, IP_ROUTE_VERBOSE,\n IP_ROUTE_CLASSID — IPv4 routing features\n - IP_PNP (and children DHCP/BOOTP/RARP) — IPv4 autoconfiguration\n - NET_IPIP, NET_IPGRE_DEMUX, NET_IPGRE, NET_IPGRE_BROADCAST — IPv4\n tunnels\n - IP_MROUTE_COMMON, IP_MROUTE, IP_MROUTE_MULTIPLE_TABLES,\n IP_PIMSM_V1, IP_PIMSM_V2 — IPv4 multicast routing\n - NET_IPVTI, NET_FOU_IP_TUNNELS — IPv4 VTI and FOU tunnels\n - INET_AH, INET_ESP, INET_ESP_OFFLOAD, INET_ESPINTCP,\n INET_IPCOMP — IPv4 IPsec (IPv6 has separate INET6_* options)\n - INET_XFRM_TUNNEL, INET_TUNNEL — IPv4 tunnel infrastructure\n\nOptions intentionally left ungated (shared with IPv6):\n - SYN_COOKIES, NET_IP_TUNNEL, NET_UDP_TUNNEL, NET_FOU\n - INET_TABLE_PERTURB_ORDER, INET_DIAG and children\n - TCP_CONG_*, DEFAULT_TCP_CONG, TCP_SIGPOOL, TCP_AO, TCP_MD5SIG\n\nSigned-off-by: David Woodhouse <dwmw@amazon.co.uk>\n---\n net/ipv4/Kconfig | 26 ++++++++++++++++++++++++++\n 1 file changed, 26 insertions(+)", "diff": "diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig\nindex aef2c5349e62..03b5ba75c3cf 100644\n--- a/net/ipv4/Kconfig\n+++ b/net/ipv4/Kconfig\n@@ -15,6 +15,7 @@ config LEGACY_IP\n \n config IP_MULTICAST\n \tbool \"IP: multicasting\"\n+\tdepends on LEGACY_IP\n \thelp\n \t This is code for addressing several networked computers at once,\n \t enlarging your kernel by about 2 KB. You need multicasting if you\n@@ -25,6 +26,7 @@ config IP_MULTICAST\n \n config IP_ADVANCED_ROUTER\n \tbool \"IP: advanced router\"\n+\tdepends on LEGACY_IP\n \thelp\n \t If you intend to run your Linux box mostly as a router, i.e. as a\n \t computer that forwards and redistributes network packets, say Y; you\n@@ -66,6 +68,7 @@ config IP_ADVANCED_ROUTER\n \n config IP_FIB_TRIE_STATS\n \tbool \"FIB TRIE statistics\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_ADVANCED_ROUTER\n \thelp\n \t Keep track of statistics on structure of FIB TRIE table.\n@@ -73,6 +76,7 @@ config IP_FIB_TRIE_STATS\n \n config IP_MULTIPLE_TABLES\n \tbool \"IP: policy routing\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_ADVANCED_ROUTER\n \tselect FIB_RULES\n \thelp\n@@ -90,6 +94,7 @@ config IP_MULTIPLE_TABLES\n \n config IP_ROUTE_MULTIPATH\n \tbool \"IP: equal cost multipath\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_ADVANCED_ROUTER\n \thelp\n \t Normally, the routing tables specify a single action to be taken in\n@@ -102,6 +107,7 @@ config IP_ROUTE_MULTIPATH\n \n config IP_ROUTE_VERBOSE\n \tbool \"IP: verbose route monitoring\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_ADVANCED_ROUTER\n \thelp\n \t If you say Y here, which is recommended, then the kernel will print\n@@ -113,9 +119,11 @@ config IP_ROUTE_VERBOSE\n \n config IP_ROUTE_CLASSID\n \tbool\n+\tdepends on LEGACY_IP\n \n config IP_PNP\n \tbool \"IP: kernel level autoconfiguration\"\n+\tdepends on LEGACY_IP\n \thelp\n \t This enables automatic configuration of IP addresses of devices and\n \t of the routing table during kernel boot, based on either information\n@@ -172,6 +180,7 @@ config IP_PNP_RARP\n \n config NET_IPIP\n \ttristate \"IP: tunneling\"\n+\tdepends on LEGACY_IP\n \tselect INET_TUNNEL\n \tselect NET_IP_TUNNEL\n \thelp\n@@ -190,6 +199,7 @@ config NET_IPIP\n \n config NET_IPGRE_DEMUX\n \ttristate \"IP: GRE demultiplexer\"\n+\tdepends on LEGACY_IP\n \thelp\n \t This is helper module to demultiplex GRE packets on GRE version field criteria.\n \t Required by ip_gre and pptp modules.\n@@ -202,6 +212,7 @@ config NET_IP_TUNNEL\n \n config NET_IPGRE\n \ttristate \"IP: GRE tunnels over IP\"\n+\tdepends on LEGACY_IP\n \tdepends on (IPV6 || IPV6=n) && NET_IPGRE_DEMUX\n \tselect NET_IP_TUNNEL\n \thelp\n@@ -217,6 +228,7 @@ config NET_IPGRE\n \n config NET_IPGRE_BROADCAST\n \tbool \"IP: broadcast GRE over IP\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_MULTICAST && NET_IPGRE\n \thelp\n \t One application of GRE/IP is to construct a broadcast WAN (Wide Area\n@@ -226,10 +238,12 @@ config NET_IPGRE_BROADCAST\n \n config IP_MROUTE_COMMON\n \tbool\n+\tdepends on LEGACY_IP\n \tdepends on IP_MROUTE || IPV6_MROUTE\n \n config IP_MROUTE\n \tbool \"IP: multicast routing\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_MULTICAST\n \tselect IP_MROUTE_COMMON\n \thelp\n@@ -242,6 +256,7 @@ config IP_MROUTE\n \n config IP_MROUTE_MULTIPLE_TABLES\n \tbool \"IP: multicast policy routing\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_MROUTE && IP_ADVANCED_ROUTER\n \tselect FIB_RULES\n \thelp\n@@ -256,6 +271,7 @@ config IP_MROUTE_MULTIPLE_TABLES\n \n config IP_PIMSM_V1\n \tbool \"IP: PIM-SM version 1 support\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_MROUTE\n \thelp\n \t Kernel side support for Sparse Mode PIM (Protocol Independent\n@@ -269,6 +285,7 @@ config IP_PIMSM_V1\n \n config IP_PIMSM_V2\n \tbool \"IP: PIM-SM version 2 support\"\n+\tdepends on LEGACY_IP\n \tdepends on IP_MROUTE\n \thelp\n \t Kernel side support for Sparse Mode PIM version 2. In order to use\n@@ -314,6 +331,7 @@ config SYN_COOKIES\n \n config NET_IPVTI\n \ttristate \"Virtual (secure) IP: tunneling\"\n+\tdepends on LEGACY_IP\n \tdepends on IPV6 || IPV6=n\n \tselect INET_TUNNEL\n \tselect NET_IP_TUNNEL\n@@ -341,6 +359,7 @@ config NET_FOU\n \n config NET_FOU_IP_TUNNELS\n \tbool \"IP: FOU encapsulation of IP tunnels\"\n+\tdepends on LEGACY_IP\n \tdepends on NET_IPIP || NET_IPGRE || IPV6_SIT\n \tselect NET_FOU\n \thelp\n@@ -350,6 +369,7 @@ config NET_FOU_IP_TUNNELS\n \n config INET_AH\n \ttristate \"IP: AH transformation\"\n+\tdepends on LEGACY_IP\n \tselect XFRM_AH\n \thelp\n \t Support for IPsec AH (Authentication Header).\n@@ -365,6 +385,7 @@ config INET_AH\n \n config INET_ESP\n \ttristate \"IP: ESP transformation\"\n+\tdepends on LEGACY_IP\n \tselect XFRM_ESP\n \thelp\n \t Support for IPsec ESP (Encapsulating Security Payload).\n@@ -380,6 +401,7 @@ config INET_ESP\n \n config INET_ESP_OFFLOAD\n \ttristate \"IP: ESP transformation offload\"\n+\tdepends on LEGACY_IP\n \tdepends on INET_ESP\n \tselect XFRM_OFFLOAD\n \tdefault n\n@@ -393,6 +415,7 @@ config INET_ESP_OFFLOAD\n \n config INET_ESPINTCP\n \tbool \"IP: ESP in TCP encapsulation (RFC 8229)\"\n+\tdepends on LEGACY_IP\n \tdepends on XFRM && INET_ESP\n \tselect STREAM_PARSER\n \tselect NET_SOCK_MSG\n@@ -405,6 +428,7 @@ config INET_ESPINTCP\n \n config INET_IPCOMP\n \ttristate \"IP: IPComp transformation\"\n+\tdepends on LEGACY_IP\n \tselect INET_XFRM_TUNNEL\n \tselect XFRM_IPCOMP\n \thelp\n@@ -425,11 +449,13 @@ config INET_TABLE_PERTURB_ORDER\n \n config INET_XFRM_TUNNEL\n \ttristate\n+\tdepends on LEGACY_IP\n \tselect INET_TUNNEL\n \tdefault n\n \n config INET_TUNNEL\n \ttristate\n+\tdepends on LEGACY_IP\n \tdefault n\n \n config INET_DIAG\n", "prefixes": [ "4/6" ] }