Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbaJBTUu (ORCPT ); Thu, 2 Oct 2014 15:20:50 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:34083 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471AbaJBTUr convert rfc822-to-8bit (ORCPT ); Thu, 2 Oct 2014 15:20:47 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: nicolas.dichtel@6wind.com Cc: Andy Lutomirski , Network Development , Linux Containers , "linux-kernel\@vger.kernel.org" , Linux API , "David S. Miller" , Stephen Hemminger , Andrew Morton , Cong Wang References: <1411478430-4989-1-git-send-email-nicolas.dichtel@6wind.com> <87ppei45ig.fsf@x220.int.ebiederm.org> <87y4t61a6v.fsf@x220.int.ebiederm.org> <54294B4E.70501@6wind.com> <87y4t2gtd0.fsf@x220.int.ebiederm.org> <542D5726.8070308@6wind.com> Date: Thu, 02 Oct 2014 12:20:18 -0700 In-Reply-To: <542D5726.8070308@6wind.com> (Nicolas Dichtel's message of "Thu, 02 Oct 2014 15:46:14 +0200") Message-ID: <8761g2nurx.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-AID: U2FsdGVkX19hBtrOvVZWj0IZOWqJLafAiwGpU2NRAsc= X-SA-Exim-Connect-IP: 98.234.51.111 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% * [score: 0.2975] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa05 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa05 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;nicolas.dichtel@6wind.com X-Spam-Relay-Country: X-Spam-Timing: total 367 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.5 (0.7%), b_tie_ro: 1.75 (0.5%), parse: 0.88 (0.2%), extract_message_metadata: 22 (6.0%), get_uri_detail_list: 2.0 (0.6%), tests_pri_-1000: 11 (3.1%), tests_pri_-950: 1.57 (0.4%), tests_pri_-900: 0.89 (0.2%), tests_pri_-400: 17 (4.6%), check_bayes: 16 (4.3%), b_tokenize: 4.8 (1.3%), b_tok_get_all: 6 (1.7%), b_comp_prob: 1.52 (0.4%), b_tok_touch_all: 1.71 (0.5%), b_finish: 0.60 (0.2%), tests_pri_0: 204 (55.5%), tests_pri_500: 104 (28.4%), poll_dns_idle: 97 (26.5%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC PATCH net-next v2 0/5] netns: allow to identify peer netns X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nicolas Dichtel writes: > Le 29/09/2014 20:43, Eric W. Biederman a écrit : >> Nicolas Dichtel writes: >> >>> Le 26/09/2014 20:57, Eric W. Biederman a écrit : >>>> Andy Lutomirski writes: >>>> >>>>> On Fri, Sep 26, 2014 at 11:10 AM, Eric W. Biederman >>>>> wrote: >>>>>> I see two ways to go with this. >>>>>> >>>>>> - A per network namespace table to that you can store ids for ``peer'' >>>>>> network namespaces. The table would need to be populated manually by >>>>>> the likes of ip netns add. >>>>>> >>>>>> That flips the order of assignment and makes this idea solid. >>> I have a preference for this solution, because it allows to have a full >>> broadcast messages. When you have a lot of network interfaces (> 10k), >>> it saves a lot of time to avoid another request to get all informations. >> >> My practical question is how often does it happen that we care? > In fact, I don't think that scenarii with a lot of netns have a full mesh of > x-netns interfaces. It will be more one "link" netns with the physical > interface and all other with one interface with the link part in this "link" > netns. Hence, only one nsid is needing in each netns. I will buy that a full mesh is unlikely. For people doing simulations anything physical has a limited number of links. For people wanting all to all connectivity setting up an internal macvlan (or the equivalent) is likely much simpler and more efficient that a full mesh. So the question in my mind is how do we create these identifiers at need (when we create the cross network namespace links) instead of at network namespace creation time. I don't see an answer to that in your patches, and perhaps it obvious. Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/