From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Dichtel Subject: Re: [PATCH net-next 2/4] netns: add support of NETNSA_TARGET_NSID Date: Thu, 22 Nov 2018 09:06:10 +0100 Message-ID: References: <20181121110124.5501-1-nicolas.dichtel@6wind.com> <20181121110124.5501-3-nicolas.dichtel@6wind.com> <8fa3ba08-e488-13c8-7a2b-8227c5fd77df@gmail.com> Reply-To: nicolas.dichtel@6wind.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: netdev@vger.kernel.org To: David Ahern , davem@davemloft.net Return-path: Received: from mail-wr1-f66.google.com ([209.85.221.66]:38527 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731397AbeKVSod (ORCPT ); Thu, 22 Nov 2018 13:44:33 -0500 Received: by mail-wr1-f66.google.com with SMTP id v13so4787421wrw.5 for ; Thu, 22 Nov 2018 00:06:13 -0800 (PST) In-Reply-To: Content-Language: fr Sender: netdev-owner@vger.kernel.org List-ID: Le 21/11/2018 à 22:07, David Ahern a écrit : > On 11/21/18 1:58 PM, Nicolas Dichtel wrote: >> The target-nsid is not stored in net_cb (not needed). ref_net is set only if >> tgt_net comes from TARGET_NSID. I can add a comment. > > ref_net is added by this patch and it is only used (unless I missed > something) to know if the put_net is needed. ie/, drop ref_net in place > of nsid It is used by a following patch (4/4) to get NETNSA_CURRENT_NSID.