Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1793042pxk; Tue, 1 Sep 2020 07:58:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN5uXaKW+qGM2pYXcrtQU93wYU5qrQqC3p5J5dVW9dsocXYzzHEGbO1Nxl3otZWFK5eZFj X-Received: by 2002:a17:906:b2d7:: with SMTP id cf23mr1736022ejb.113.1598972334025; Tue, 01 Sep 2020 07:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598972334; cv=none; d=google.com; s=arc-20160816; b=rgukzV5fI+4uC7TtlcJrBTi2RakkZJtv9x+ll21vvgeyDTrsVJmxt9M+psZdwmIdPg 5u8SHLO6htPLl8VYdclwzU9wWZlfdCYrvHKh/HyZ3Dy2s1hqEZKmlW5erMymRk/hmEMT 0u7B8wrYULkLSCCddtrG4iaw6GoMLdYqDRkxdR5xsDlnH1P0NxzAQLUV1KrUZBtwJ2DW 5w51TflUkzzIMEQI88vIscELFkT8hhafYke2flgxfDAm3wlEX5FXQccvsfYE8qCAqsIb kUHWrMa4Py1R7/bzlWhkHz8IJvmawOHN/6RuXzV8G0X8klOuREsyLO47c7zFHN2yfPCs C82Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yRdwCQYWLWUYD6ZttodlfuSxdtjBUQxn+XNGerSDtP8=; b=EKGd/2zcskfoBLDgYSwag8jb5sGeDRMORAwGvtgUFuK0FoVAPeZqNMkOFJkjwto15O qkQAuAUz7ls8gJFIC59BpX60TtXY0wvqepJ0SeDrCjNlt+ysKTMBv5rA922rztdAgtJ0 xFVS42++ImeD2ubzlFpi+X4ptpa83xI/iCsv0b0zN40L/RJtxnzLIR+oODEf4Cz9bIZo ZkEQo3tm2/jCBv69Cbx5B4X3X+D3VGIgt0ivaqq389+LvpyrKI9/XCbjgymbCwEq95Sj JakKoVmFA5Ea6U77MORDDoG/BvyJA2/P3uTvCUz/6svI38kswLHYZQa+qUaasgp+4pWy Cw9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EtaFk03t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si786783ejm.538.2020.09.01.07.58.29; Tue, 01 Sep 2020 07:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EtaFk03t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728299AbgIAO57 (ORCPT + 99 others); Tue, 1 Sep 2020 10:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbgIAO54 (ORCPT ); Tue, 1 Sep 2020 10:57:56 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67C6EC061244; Tue, 1 Sep 2020 07:57:56 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id w20so1566379iom.1; Tue, 01 Sep 2020 07:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yRdwCQYWLWUYD6ZttodlfuSxdtjBUQxn+XNGerSDtP8=; b=EtaFk03tzFwc5tMH+rsxUSik8g5VJPPMvtx7M/eykf/pdLY84+Saka4JNpUYX9rEd7 Q5LAlX/krsv7FtUzuQB6zcJyGR8HeC10zgYf80u762uJ2yDTmoV9SVvy1F3HShRYJ6yI akO9VdSeu+H6SkRmw0bPOoNuCRmagy+KkAX2ba/EcIIiify1pZfjY4HjMClyKRZ521FP Rp96phfXdtEnDyfl0anZeHOyft166Eu+XarYvgsxxCLkhtHUjG7tje//NFOGEtHFfa6a lgklnX6QB9+fyJnjD/CLQbNIPfrA9TfTybR6mIJMx6gREgzej+ZQ6JwkZtf1eMe+5use NFXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yRdwCQYWLWUYD6ZttodlfuSxdtjBUQxn+XNGerSDtP8=; b=h1Mb/HPvCuYKDpCjG4RfMsDLOYc57AwBswCgjdLwjzf9nLDmwKsRsus31DjKOhNQZq lAk1b/sLMe82UiIKg3O3IOApPmH7RKGS5BTvaqZKzKvsia7AInEVQbGAZHPFr5Sbaxj2 UwC6qSGWEXkVj75BCzfWUaAp2B0zkTlF/Zbp2exlKhYyWCqy/1N+z7Wgk1GpvRFWK7SH CPURVTcWvPx/a5uJrD9QNy8gK5LujytplfxYMHH4JYNAirzkx+/QPwzR2yvqJJO8m5Hh kT1dE06g+/3lvQFxF92Txz1VrC9hOW2BsyZiGUbvCQ82PYGzCM2mZNUBUmWpZK70yqI3 X0sQ== X-Gm-Message-State: AOAM530rNSsidg5vbA8zwKf9l33jbHZe2ulVqYLhK6IyQHewj6cein2w ua8F4PcR0xXqNaIGbkYO7Nk= X-Received: by 2002:a05:6602:1589:: with SMTP id e9mr1746626iow.85.1598972275182; Tue, 01 Sep 2020 07:57:55 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([2601:282:803:7700:883e:eb9e:60a1:7cfb]) by smtp.googlemail.com with ESMTPSA id u25sm633459iob.51.2020.09.01.07.57.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Sep 2020 07:57:54 -0700 (PDT) Subject: Re: [PATCH] net: ipv6: fix __rt6_purge_dflt_routers when forwarding is not set on all ifaces To: Eric Dumazet , Brian Vazquez Cc: Brian Vazquez , "David S . Miller" , LKML , netdev , David Ahern References: <20200901065758.1141786-1-brianvv@google.com> From: David Ahern Message-ID: <52832405-fa37-38fb-b8fb-d7bd7a0d1d52@gmail.com> Date: Tue, 1 Sep 2020 08:57:53 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/20 1:56 AM, Eric Dumazet wrote: > On Tue, Sep 1, 2020 at 8:58 AM Brian Vazquez wrote: >> >> The problem is exposed when the system has multiple ifaces and >> forwarding is enabled on a subset of them, __rt6_purge_dflt_routers will >> clean the default route on all the ifaces which is not desired. >> >> This patches fixes that by cleaning only the routes where the iface has >> forwarding enabled. >> >> Fixes: 830218c1add1 ("net: ipv6: Fix processing of RAs in presence of VRF") are you sure that is a Fixes tag for this problem? looking at that change it only handles RA for tables beyond the main table; it does not change the logic of how many or which routes are purged.