Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp83401imm; Thu, 30 Aug 2018 08:51:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYd69dvEx9LA84vkywLC0OXGovwm9Lo1jBxb4QsZFGnfO71b2JitTvhJk5oXFo/PMzpImcV X-Received: by 2002:a63:4860:: with SMTP id x32-v6mr6219756pgk.375.1535644260357; Thu, 30 Aug 2018 08:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535644260; cv=none; d=google.com; s=arc-20160816; b=MZIB/Z1lgcusKQm4CXOb1ISANx8IJMPkqqg79mA9W+hn/B8xt38GsGTdh6hFlzK5EB p1y18y+fCASbCv3pZ2sm1rdpU3tz1vfQjb+jlYdZsC2GjKK7OZQWwzE0ESTRiKotII7G jKIlo+Ig5J2So32c9ke1rc67mGOlnqHeQns+C4q5oaj78Wiq/XjzhmG3ouIbVH6sjcPy sVWz4FC9eD1qyPxWRmJurymh0tPOvF+4cObFCyebOWxMk1UDLZNT7Xox2NG52UafQiUw P/NN6g4WCiMlIVDq8557e/0ZlZA5uNgK+Wy/gw2e++nz+rCGUfSprChi9aEf8Cen5H62 TV/Q== 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:cc:to:references:subject:reply-to :dkim-signature:arc-authentication-results; bh=2Ro+YhYCgLdkkVvf8gJKCyfj8mMLYi1pQy4uXORtAYg=; b=N0LAx6l0AZ15t4SXqwcrl9fbFsPQM/Ux5GxUtzvxEz5nAKDdEMb8XUSeHO9bPl4PYc OQDAGYIXjGDnhhJDtt/kvnNCcdw00MFyFP4xcmTDsDai0BsZJizF5lXnxh6ydM9YqSp0 7JKWI14hNn/zpNfRwaarj/OsWRUZF9O1rMB7uCY8J+GYnvyA03DHL94Ney1V/xWdEqwK pMzLtKlvipKYHucav6u/fRejbZZkfJEGkWeohRvAIDGz95wHgcQrd5yUf5OGvFpYB0q5 rP/leMbxTnx1x61h65N9wS/Yec9Up4ey31wErVFiA7dXkT4I7EmjHTA4N60VHklPXNcM V/IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind-com.20150623.gappssmtp.com header.s=20150623 header.b=iT3kdGVJ; 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 w4-v6si7488834pfb.52.2018.08.30.08.50.45; Thu, 30 Aug 2018 08:51:00 -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; dkim=pass header.i=@6wind-com.20150623.gappssmtp.com header.s=20150623 header.b=iT3kdGVJ; 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 S1727423AbeH3TwD (ORCPT + 99 others); Thu, 30 Aug 2018 15:52:03 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52820 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727042AbeH3TwD (ORCPT ); Thu, 30 Aug 2018 15:52:03 -0400 Received: by mail-wm0-f68.google.com with SMTP id y139-v6so2470435wmc.2 for ; Thu, 30 Aug 2018 08:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=reply-to:subject:references:to:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2Ro+YhYCgLdkkVvf8gJKCyfj8mMLYi1pQy4uXORtAYg=; b=iT3kdGVJ9qbKPjgJKBKj4KAACGK0WNTtQxjecE36kHmX35lmiswAbq8tuSjtLhT5ae zMEMo2brjutkuvU78cQ3bsP70UeIZN13tBxbM+eahaN8hwtdVmDnvoI/jWrzzLqTmXRX k6BqzSTIgWANg+a6m9IftdfJKx1+XEFefhEbl5W7wJymthPR/VTaKBeJN5jWBmu9wxpQ Bh57igFrl0pKdhXi5TCEYTUOOtYjHy5uYSm063Yh1OMyB+CWI/IFMw/5K5fZHVk6Opls 1zDvMPuVohgvv0Ja4jFhaG6UIR+qi5rG6yqxL1BvmOuEBTqfNIhfnIrXvffR6YsOHMIZ lkSQ== 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:references:to:cc:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=2Ro+YhYCgLdkkVvf8gJKCyfj8mMLYi1pQy4uXORtAYg=; b=F8l4t1Hi/1cK4WU2I08kqIM/aOT1woU/NXC0/X5eW/wDLi27Bsqhfq8R/35yNRqvBz uj056/Dd4+Pz4epFUR3vtlvTuNmmYKKcG7ZJb+Ozaj3dU6/89rKKh5V3r9CanF3jUPij xJLvXR1EzA2+PyRCYgK68KEgK8Qj/Gz6l+UjNPaj8troHMN5M/NNBUfw60tBtpndrraC netWpJ6fSn3dG52gUkr1fX5Qhcz+5eCs7nXodxo6b7T19kLE733fjiIshOKPDKEqW3zw 8GdtWCY9Otz/CI1AjLSg+g0buYm8/SlpjTt/fmYJPxJGeLuOPGils/ejUIJPeOymPqLV LJCw== X-Gm-Message-State: APzg51Dfp9l3cW9UkH9jXJQt1XHXd6LR+frktaPWhc0l5kngfT05x610 Yy0rRiFDXPxDYUqjg8p2Cam1m89T1cs= X-Received: by 2002:a1c:b709:: with SMTP id h9-v6mr2089118wmf.130.1535644155297; Thu, 30 Aug 2018 08:49:15 -0700 (PDT) Received: from ?IPv6:2a01:e35:8b63:dc30:b857:a345:7022:7458? ([2a01:e35:8b63:dc30:b857:a345:7022:7458]) by smtp.gmail.com with ESMTPSA id w10-v6sm5603707wrp.31.2018.08.30.08.49.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 08:49:14 -0700 (PDT) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 0/5] rtnetlink: add IFA_IF_NETNSID for RTM_GETADDR References: <20180828231859.29758-1-christian@brauner.io> <20180829181303.4sacopk7y3p5xyou@gmail.com> <81379a4f-7149-10ff-2453-886314d0b0c4@virtuozzo.com> <20180830144544.tpross4jd6awou4u@gmail.com> To: Christian Brauner , Kirill Tkhai Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, pombredanne@nexb.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, dsahern@gmail.com, fw@strlen.de, lucien.xin@gmail.com, jakub.kicinski@netronome.com, jbenc@redhat.com From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Thu, 30 Aug 2018 17:49:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180830144544.tpross4jd6awou4u@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 30/08/2018 à 16:45, Christian Brauner a écrit : [snip] > Introducing the IFA_IF_NETNSID property will not make the netlink > interface less modular. It is a clean, RTM_*ADDR-request specific > property using network namespace identifiers which we discussed in prior > patches are the way to go forward. > > You can already get interfaces via GETLINK from another network > namespaces than the one you reside in (Which we enabled just a few > months back.) but you can't do the same for GETADDR. Those two are > almost always used together. When you want to get the links you usually > also want to get the addresses associated with it right after. > In a prior discussion we agreed that network namespace identifiers are > the way to go forward but that any other propery, i.e. PIDs and fds > should never be ported into other parts of the codebase and that is > indeed something I agree with. Yes, I agree with this and I think this series go to the right direction. Maybe I would choose a more generic name for the attribute, something that can be used in other netlink families (xfrm, netfilter, ...) also. What about IFA_TARGET_NSID?