Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E4BDC54EAA for ; Fri, 27 Jan 2023 03:00:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232502AbjA0DAD (ORCPT ); Thu, 26 Jan 2023 22:00:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233460AbjA0C7y (ORCPT ); Thu, 26 Jan 2023 21:59:54 -0500 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7F4E3432D for ; Thu, 26 Jan 2023 18:59:47 -0800 (PST) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id D19FB2C01FC; Fri, 27 Jan 2023 15:59:45 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1674788385; bh=2xMEbOKhtIY1n5O8ShroG3k1FtbRxbMYyFn8oh9S9AQ=; h=From:To:Cc:Subject:Date:From; b=k69MYEcOzVrTTVfDaCal4UcJQhJ6lSh8R9/voxaKjlo4OT1lzMRxv0NCUBNZN4j7j XSdgGvnO9+qNH45aT1c7q4ZS6mM8XWZHJ0Pub+71XeBgsCQ43uIH5Wt8krOiiv1Jfr W/PlUlXi/fjU0JgrginE8SY/xBP3qw6B5/xBqpbnwumaDAvmkvAEZ2ly6b+N5DdbSP zMT4nBsVyLmJvWXnNgh+iZSmRCqWRp3NTzoY/5/wop109cVRLJMTAzqhp6ziUc2EIP qTd7tlWS2jbCosUsPSSd7lCPQpZjvgEMmJ4pgDArJTGfsVx9vWuikJZONfQDhMUkkM Vssfl6pMpoC6A== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Fri, 27 Jan 2023 15:59:45 +1300 Received: from thomaswi-dl.ws.atlnz.lc (thomaswi-dl.ws.atlnz.lc [10.33.25.46]) by pat.atlnz.lc (Postfix) with ESMTP id ACAC713ED8D; Fri, 27 Jan 2023 15:59:45 +1300 (NZDT) Received: by thomaswi-dl.ws.atlnz.lc (Postfix, from userid 1719) id AB8E33E08C3; Fri, 27 Jan 2023 15:59:45 +1300 (NZDT) From: Thomas Winter To: davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, pabeni@redhat.com, edumazet@google.com, kuba@kernel.org, a@unstable.cc, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thomas Winter Subject: [PATCH v4 0/2] ip/ip6_gre: Fix GRE tunnels not generating IPv6 link local addresses Date: Fri, 27 Jan 2023 15:59:39 +1300 Message-Id: <20230127025941.2813766-1-Thomas.Winter@alliedtelesis.co.nz> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=a6lOCnaF c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=RvmDmJFTN0MA:10 a=IpZYufPWUN2N8bb5Va0A:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For our point-to-point GRE tunnels, they have IN6_ADDR_GEN_MODE_NONE when they are created then we set IN6_ADDR_GEN_MODE_EUI64 when they come up to generate the IPv6 link local address for the interface. Recently we found that they were no longer generating IPv6 addresses. Also, non-point-to-point tunnels were not generating any IPv6 link local address and instead generating an IPv6 compat address, breaking IPv6 communication on the tunnel. These failures were caused by commit e5dd729460ca and this patch set aims to resolve these issues. Thomas Winter (2): ip/ip6_gre: Fix changing addr gen mode not generating IPv6 link local address ip/ip6_gre: Fix non-point-to-point tunnel not generating IPv6 link local address net/ipv6/addrconf.c | 61 ++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 28 deletions(-) --=20 2.39.0