Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp940760ybx; Tue, 5 Nov 2019 07:53:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyi9TiqT5bSRxXqeAaZM1XzV8wwHpcRAOfakMyGYReGgrTcMWLy7+/vTUP/pyVfCKunatSP X-Received: by 2002:a50:c2c2:: with SMTP id u2mr36944857edf.133.1572969216183; Tue, 05 Nov 2019 07:53:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572969216; cv=none; d=google.com; s=arc-20160816; b=De0kSfknRhrOooWgrdU7flSY1LA4Hb2mC4aldq//OBFTiy7rVJk462mWg5HRhQXC3e 9p49X4fzwve+j+wI4BLZBq8iJ0Eas/L3H8J1kmon4tWQJDWa+Rqn8BkF/WYtSBOJ56Vp rHs6/CpuhrahW1EesUeTUp4PJdP4H6S204vCR5XDA/PZ/LKAJ7i04mdQpvEElIcupsk6 A+H2H9o+kAn8KqPwrYqw9aL7N8B8LZ8HQAy61ECtS4g4z2n0/LbBkgbuGin18dmWkPt6 L6pit4S4iWMO8jvKIs+ADmfCVVvAGMriXS8CmEiZb7nDQ0qaKsBqUsE8B4njkDQLqxic FMlw== 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:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=Omqe6S/pyFxJI7C1o2eETHJWbUrn/qTQRRvTn+QMfyg=; b=hbX+mBSuYVbdCIrR7SPELLG1Hc7Ilr9qCqmh7oAxUvbwBrEKe6gtYfYTsiuX3LMefN UkK7uYMp2GOXs/p5V/VZ/C1/LTO4tGAnE9mUI44dEFlUei+9HTIlPJqirzGxGLp/qfVh GsDtyjZ/2ovLPaliYItLR/FZc0Wtlr3uBrYCObv9BQii3eBgcRh25A5zKlVADIuZqeoO UJpOOn7YtHdQyEWGewFplTEgrDq+aF72ps9eXviaulxBN7TPtL2nMtnhZ5nXg9g/1Vfn SGyLbUfny/FaWWOVYe9fLNA5AnWhwgXpBhpVLAfsJE4EIkyXUDzMkvTbTCaAk0S8r6hg bagA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=RzkorrMj; 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 j11si10351158edj.43.2019.11.05.07.53.12; Tue, 05 Nov 2019 07:53:36 -0800 (PST) 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; dkim=pass header.i=@6wind.com header.s=google header.b=RzkorrMj; 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 S2390023AbfKEPtg (ORCPT + 99 others); Tue, 5 Nov 2019 10:49:36 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41055 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389571AbfKEPtg (ORCPT ); Tue, 5 Nov 2019 10:49:36 -0500 Received: by mail-wr1-f67.google.com with SMTP id p4so21956180wrm.8 for ; Tue, 05 Nov 2019 07:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Omqe6S/pyFxJI7C1o2eETHJWbUrn/qTQRRvTn+QMfyg=; b=RzkorrMjvOIWN4UkPK8Y7Znou9DRHdIJJdzqduj9U84TzYPrjarP5nbfB2T3swqAB5 9Y4y4+jLERhtnMbGydLfoIP7oKOq9Lbt+z/x4iM2zB/1jh9RKh+7UAwC3b6hkptTaK2S 0N1gWFkaqSOVwEhcdWVR2NnZua3pPeXC2ao/eiRZ/Pq28qVBUTUMoUtBEcfx9mturcua W57o+fVlOrvvBoaR5/BlNfZfePVlIW5lUUKkURAkP8b1muUDkgcEssXTw3OJn1YCI4v3 BKm7gm6qrGLbL5bqO/X0FxUAnuf16r3yC+mPOMIyLxnFewmNSlIiA2LRv/rwARn2Ij9o Jhhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Omqe6S/pyFxJI7C1o2eETHJWbUrn/qTQRRvTn+QMfyg=; b=J1Vz2bDieCz8VilGgGI918GIRf2kz/UbYS3HhLEI0SDl5ArIrj1lGNvNP+SoHAIyh3 5omEAXE6IAw13fUBYPn9r2umBcpSIRQlmXyliNAxoctVsHKZyHVcGudXdWoDGqAYGrbm rW9oEsL0zlEX1zalg0VTtbxaL/FC2xogEvVBd15N4j8/RvCNg8Bxjob8xlY/sxBEmikh dW8ZxJbR+2AfgXddtxupYesHovlhaGcvnb5PKC+ZnUEcpjSgBvDqpj8kosJXZZobyeeY 4S/KxnFsvFzSZKaOro2MJM8nqldp901UAKi1FAtSh0TCG7ILyLmBbisNqefmpItxZBLJ sadg== X-Gm-Message-State: APjAAAVE47Ga/XQpiJupyAHEoEkDnH3q/mDLZZmPx3hxJvxqeXx/BK28 1fB+0gUVgb8uJYbpq7kNhMZZ1Q== X-Received: by 2002:a5d:5444:: with SMTP id w4mr26585867wrv.164.1572968973724; Tue, 05 Nov 2019 07:49:33 -0800 (PST) Received: from ?IPv6:2a01:e35:8b63:dc30:f096:9925:304a:fd2a? ([2a01:e35:8b63:dc30:f096:9925:304a:fd2a]) by smtp.gmail.com with ESMTPSA id g184sm26057395wma.8.2019.11.05.07.49.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 07:49:33 -0800 (PST) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH 5/5] net: namespace: allow setting NSIDs outside current namespace To: Jonas Bonn , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.net References: <20191105081112.16656-1-jonas@norrbonn.se> <20191105081112.16656-6-jonas@norrbonn.se> From: Nicolas Dichtel Organization: 6WIND Message-ID: <739c409a-bfbf-99c0-9624-38264d52087a@6wind.com> Date: Tue, 5 Nov 2019 16:49:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191105081112.16656-6-jonas@norrbonn.se> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 05/11/2019 à 09:11, Jonas Bonn a écrit : > Currently it is only possible to move an interface to a new namespace if > the destination namespace has an ID in the interface's current namespace. > If the interface already resides outside of the current namespace, then > we may need to assign the destination namespace an ID in the interface's > namespace in order to effect the move. > > This patch allows namespace ID's to be created outside of the current > namespace. With this, the following is possible: > > i) Our namespace is 'A'. > ii) The interface resides in namespace 'B' > iii) We can assign an ID for NS 'A' in NS 'B' > iv) We can then move the interface into our own namespace. > > and > > i) Our namespace is 'A'; namespaces 'B' and 'C' also exist > ii) We can assign an ID for namespace 'C' in namespace 'B' > iii) We can then create a VETH interface directly in namespace 'B' with > the other end in 'C', all without ever leaving namespace 'A' > > Signed-off-by: Jonas Bonn Acked-by: Nicolas Dichtel