From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99322C43381 for ; Mon, 1 Apr 2019 19:45:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E5E620830 for ; Mon, 1 Apr 2019 19:45:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="vf1BSLrg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726419AbfDATpN (ORCPT ); Mon, 1 Apr 2019 15:45:13 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42437 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbfDATpN (ORCPT ); Mon, 1 Apr 2019 15:45:13 -0400 Received: by mail-pf1-f196.google.com with SMTP id r15so5069261pfn.9 for ; Mon, 01 Apr 2019 12:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H6tDmwzUJS4TENwPQOZ8HOQCOZ7vY79t058C9e/AbQQ=; b=vf1BSLrg8mijOpbTTC66frIih89S9ZHLYmHnGo3ennHnu8gGuogioaO4qS15L6FchS 3lFhEc9OxZxI+AIiEs0V5ABJ59uTtI03JfMTDY9n/8Y1Fwu/4z9+pMm84qZLz27A7PoF HbSP3tYJVx9729kJQWWYfxxOMivfmrq8snTiQEgNhV7yfYLdMHjTVxIw+mXNgiyNn0M/ xCxq4mMhRGA2YjpQ/QIP5d6dbPxJZpYcFNIvYPjBjf9Of77hsg0IPgf2oqYp7nHwZAO+ SgufVcd3TWnrqAJr+doc451SzM26bTGxoMoqoU020aNex3iRqudyi/Y9wDsCj5bPdtrS SZFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H6tDmwzUJS4TENwPQOZ8HOQCOZ7vY79t058C9e/AbQQ=; b=MIxEJmpHbgnOMHD4JeGMsusndOBVQ8DLCRUPm5IqI0JIBggQt2hGZsJmOert8NOa0T Sg/1Zt+HF/+tMYL0xBjArbwk7q53timYO96+RJZzRNyumD627O8dN7s1FeRRWxsmGB4J C1qRcGYbmmyb4+uOKXZDCdAufsBavo2NgjGzgoWVAAj+zfjmpuqSl3SlKoylCHXhbDZd GGK8LZmSrwCrr9UnHiiBFYzwuqziIwpfirsgc3MHPXnfBcDQa5FshWoVyZJYEc64hSYj MeaSNIwVgNeTPG7BLUTgaGA/bpgVWIXdQ05YJBXtxCf8SEnNIcTW+GR6WGuubyRxpdfZ zSAA== X-Gm-Message-State: APjAAAXkgg3osLCabSyIVgo4axJCxbAdAuW+E4w0Q1nRoE44gkaZ/pvW vSLabODB5dO5KEVnTvCwmWM= X-Google-Smtp-Source: APXvYqwCg7luO37iI9uiGOBk05FSHSwGfIe8ErqbwBP5B3jMxTDcd8I0AMIKjWnwUL9586pkYs3rRA== X-Received: by 2002:a63:10c:: with SMTP id 12mr18063586pgb.276.1554147911961; Mon, 01 Apr 2019 12:45:11 -0700 (PDT) Received: from athina.mtv.corp.google.com ([2620:0:1000:1601:d7a4:903f:6d6b:ec10]) by smtp.gmail.com with ESMTPSA id h4sm14418036pfo.119.2019.04.01.12.45.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 12:45:11 -0700 (PDT) From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= To: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= , "David S . Miller" Cc: netdev@vger.kernel.org Subject: [PATCH 1/2] net: enable IPv6 iff IPv4 Date: Mon, 1 Apr 2019 12:44:58 -0700 Message-Id: <20190401194459.168345-1-zenczykowski@gmail.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Maciej Żenczykowski IPv6 is 20 years old and IPv4 has run out of IP addresses and is deprecated. It is time to make IPv6 a first class citizen. As such we remove the ability to compile IPv6 as a module, and IPv4 support now implies IPv6 support. This has the nice benefit of allowing upcoming code simplification: all IPv6 module support can be removed, and we'll be able to merge IPv6 socket state into the base IPv4 socket state... At some point we should be able to reverse things and make IPv4 the optional protocol and possibly even make an ipv4.ko. Signed-off-by: Maciej Żenczykowski --- net/Kconfig | 1 + net/ipv6/Kconfig | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/net/Kconfig b/net/Kconfig index 3e8fdd688329..0f2ca2137f9e 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -68,6 +68,7 @@ config INET bool "TCP/IP networking" select CRYPTO select CRYPTO_AES + select IPV6 ---help--- These are the protocols used on the Internet and on most local Ethernets. It is highly recommended to say Y here (this will enlarge diff --git a/net/ipv6/Kconfig b/net/ipv6/Kconfig index 613282c65a10..9197f496a112 100644 --- a/net/ipv6/Kconfig +++ b/net/ipv6/Kconfig @@ -2,10 +2,8 @@ # IPv6 configuration # -# IPv6 as module will cause a CRASH if you try to unload it menuconfig IPV6 - tristate "The IPv6 protocol" - default y + bool "The IPv6 protocol" ---help--- Support for IP version 6 (IPv6). @@ -15,9 +13,6 @@ menuconfig IPV6 Documentation/networking/ipv6.txt and read the HOWTO at - To compile this protocol support as a module, choose M here: the - module will be called ipv6. - if IPV6 config IPV6_ROUTER_PREF -- 2.21.0.392.gf8f6787159e-goog