Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3074125imm; Sun, 19 Aug 2018 11:31:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzjcWMeFTBQnRDJMSPw4RsmSrj/NzWQr2MQCneQXsjKccsGeebTB0WObafs9Y/wpesaeD6i X-Received: by 2002:a17:902:24e1:: with SMTP id l30-v6mr10728159plg.315.1534703493414; Sun, 19 Aug 2018 11:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534703493; cv=none; d=google.com; s=arc-20160816; b=IawVxFuOADraQfs19+BQfu2NIjmc/1vHgBrk/IkQr4/T2tdwjslKhMlZux3vwHWtRm 5/njFrJWfg35j7lYgkxsuy9EWNjPq+bycdNIUqIjq3DoQDa8/M+5+aOO06XMTwEn3LK7 vQx71WR7/h+9CTDXw1Fa2kQ/dd2opCtyj6mwZ3b0N+1atw3ImlzrdMrjpiy0ssiR9ZhK l42X4j7q5qL42QG0nP92MOmRrKWukK6tjAdVRBPe2XOLnEquUoetKbxW0zy3JU/I9BPv vLphSCiu2BRrivPDIZrjdXa9RoEEZE+M730mRfgx+IIxG8btJlMv3w6eQJKOayl7mrRY Ypww== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=byqmEnMPLAMbyySMLVidASMUaZQobZNNiG1lYBWjyLs=; b=c2IIoXyKIJmSosCRF5kHAFC88yMS5VifTEnUnVTAZfjO7rXW8Bn3DM9OesfqdfrPiP T0TH3j1R5LIjsnidB7sWr1IhOSIQp8oJq1POz1ZfvYggfp7HISF8XTF1ARp97fZ1gn2E cf/S/9QbeaYTkhSOdNiFpKwgbaLutE1t4Z1un6tsUvFRDetYRT5FCvCEn03PYMNJQC5z rXnOj20hJQd8R7Vvy7JVN7PElhn4xx0cTTNUXkYRSs8yG1PuYL9X7hl8g+hoASbmhyP+ NSXOnAVkMIXrMH3G70Xi4RbH8Efg9jpRXmuaOAfzVSh3/aAYlXvOzRVigXLf6534bqRa wCeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b19-v6si8211666pfm.5.2018.08.19.11.30.49; Sun, 19 Aug 2018 11:31:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726608AbeHSVkW (ORCPT + 99 others); Sun, 19 Aug 2018 17:40:22 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:33774 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbeHSVkV (ORCPT ); Sun, 19 Aug 2018 17:40:21 -0400 Received: from localhost (71-36-117-41.ptld.qwest.net [71.36.117.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 7B2161473D02A; Sun, 19 Aug 2018 11:27:59 -0700 (PDT) Date: Sun, 19 Aug 2018 11:27:59 -0700 (PDT) Message-Id: <20180819.112759.972635376824399679.davem@davemloft.net> To: yanhaishuang@cmss.chinamobile.com Cc: steffen.klassert@secunet.com, kuznet@ms2.inr.ac.ru, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ip6_vti: fix creating fallback tunnel device for vti6 From: David Miller In-Reply-To: <1534662305-16734-2-git-send-email-yanhaishuang@cmss.chinamobile.com> References: <1534662305-16734-1-git-send-email-yanhaishuang@cmss.chinamobile.com> <1534662305-16734-2-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 19 Aug 2018 11:27:59 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haishuang Yan Date: Sun, 19 Aug 2018 15:05:05 +0800 > When set fb_tunnels_only_for_init_net to 1, don't create fallback tunnel > device for vti6 when a new namespace is created. > > Tested: > [root@builder2 ~]# modprobe ip6_tunnel > [root@builder2 ~]# modprobe ip6_vti > [root@builder2 ~]# echo 1 > /proc/sys/net/core/fb_tunnels_only_for_init_net > [root@builder2 ~]# unshare -n > [root@builder2 ~]# ip link > 1: lo: mtu 65536 qdisc noop state DOWN mode DEFAULT group > default qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > > Signed-off-by: Haishuang Yan Applied.