Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2925324ybx; Fri, 8 Nov 2019 11:20:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwa5yKW5jrl8kVOZ9+GsqU3nLpgl+hNtf9Vdd5h3y43Oh6ak2Wu4WgO5ZrGXlxHYYW84965 X-Received: by 2002:a05:6402:706:: with SMTP id w6mr12563701edx.38.1573240840407; Fri, 08 Nov 2019 11:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573240840; cv=none; d=google.com; s=arc-20160816; b=EKA5FKfxvpQyzPVlIRvSo5aNIvoKlVdKzVI7rqCRMDGrlTxakjgpbFUGN2vdz//5y8 c/6vZOM3SuhVybAPbL4V4S0jSBzXmzoIQWOs4V3eSoFIgR/uohf/Y3+YA9uM/KZkaeGm aN8sEZos4I+Bn7sHooEUrFfFCZHpYImgnBQvq6jve8J4xwEAzGnBY/Pz6ZOvyNSwgu3F 9M0a5apfA5GDfqmdS8eKdGbSkppF4ggumzLQlWRislvmTkX60RtSZQjE00dcjsH33Ves NJDlqUtrXKLIfbt6I/AHPb4UF7GyR3l3swJ/Ay953Tqex+qTES7PVAg2ywRkZZtWx3Mn yh+A== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Q0460TgzgnaZLvm1IV8VLVUyZ7xHs8aC72SXVYWvcVU=; b=lr3HWZW6mEH7uSuccAbHkOECZEH48Jn3bjdHg66KzTKEPekih1zTqgZGk7tebA0/Fh alZCCgPBenRmEgE9EtU2jxGjEqJBECuIcJNqWgt+z7+ZB9HH8gAuiKGhB7QtXhKlPQk2 rsq+DOcZWc/2vHv7P/QnwPU9N9nNeQWgIZ1ipKQ8t1SYzL1isVN9MM2WsUPrMw0S44pf a6XPOkGs25WF2zMELZhj3bF0gitU72dRutC5t5NFk4ll6y2QeqczebEdtxSzi00t/ZvE 2KzdQZrRRmwBFmdlOG9DTg5tKGidtd+hP9t+Dl3k3b5xWtf0jRgeDRgKQ3XEdfJWWnlS CY5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=K5YNkYk1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m45si4845472edc.153.2019.11.08.11.20.17; Fri, 08 Nov 2019 11:20:40 -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=@google.com header.s=20161025 header.b=K5YNkYk1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732304AbfKHTSl (ORCPT + 99 others); Fri, 8 Nov 2019 14:18:41 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39078 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389565AbfKHTAO (ORCPT ); Fri, 8 Nov 2019 14:00:14 -0500 Received: by mail-wr1-f66.google.com with SMTP id a11so8240967wra.6 for ; Fri, 08 Nov 2019 11:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Q0460TgzgnaZLvm1IV8VLVUyZ7xHs8aC72SXVYWvcVU=; b=K5YNkYk1UQ4vtj9aLjQOleIjNFwGE4P2DPtHyOJKrm0VgEBuu1FvF13NT7V6HiWCsP 2u7A8KRacDJqAIeW1V9A/AKGyW3tacYFM4tF+E8y+VrHe1LrIeGifRm2kZvDP9ShD1xk MSn9TeRoGe9QjWqJAovsmJOxKrpscIvIuP7pHGloR+7Ewb9aGj8swRsEYVzKKcV+0Qk7 h7QbtOR1ZxrblMnDQ+DR2f8eSTdXOl9q2CoIfpnLlQ4yMKNtrjw4W4+F28N0cwvSfgwf zO/DiJFBfOQjQzmDvNzJq6tnQqw/F5wbcJLgqLPncsZZvPU5Llar08p05tequHk9kSyr Yrrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Q0460TgzgnaZLvm1IV8VLVUyZ7xHs8aC72SXVYWvcVU=; b=FJNLaIYmSAi/9xH7CvLLhZevm5mi9MewI+7crxfoq/JEeGpaVC3ZahOmIle/aADHj3 9tO6B00l3D3YIXfV+J21GQMmRJgpSSglaLvyYw9xRK3SEmEG0B9qrrhJp3fONBDgfI7/ rJ3GIUZ4ywsk7jNevHdwaUik1tBlI1Vo5f5nmSFA6gZ0oAB2/lmcApj35bg9SkkNcR1S knv/CyFKxiYFD/dmrrY24SawDhchloieVmFGsKyGZ9kF92uT3yDw5NfI6TJY5gribOq7 oxBf84MKOjHykqOe/cCgC9ia6eUTfoGVniJqw6xyuah/O+yf7eSXtwrUkQ7srNoONG3b TPdQ== X-Gm-Message-State: APjAAAWwZYL8oq+Kx6tG8Y4G3RnSyVfTGCYv/wOcz74FUvCx7a3szjGc m4dXcJ9qRw3nHy5fqYfrvApYMgsGgcBjvlFulCecNg== X-Received: by 2002:adf:b1cb:: with SMTP id r11mr2543917wra.246.1573239611844; Fri, 08 Nov 2019 11:00:11 -0800 (PST) MIME-Version: 1.0 References: <20191107132755.8517-1-jonas@norrbonn.se> <229cdce6-f510-5d9f-401b-69bad4af0722@norrbonn.se> In-Reply-To: <229cdce6-f510-5d9f-401b-69bad4af0722@norrbonn.se> From: =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS14KS+4KSwKQ==?= Date: Fri, 8 Nov 2019 10:59:55 -0800 Message-ID: Subject: Re: [PATCH v3 0/6] Add namespace awareness to Netlink methods To: Jonas Bonn Cc: David Ahern , nicolas.dichtel@6wind.com, linux-netdev , linux-kernel@vger.kernel.org, David Miller Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 8, 2019 at 7:36 AM Jonas Bonn wrote: > > > > On 07/11/2019 22:11, David Ahern wrote: > > On 11/7/19 1:40 PM, Mahesh Bandewar (=E0=A4=AE=E0=A4=B9=E0=A5=87=E0=A4= =B6 =E0=A4=AC=E0=A4=82=E0=A4=A1=E0=A5=87=E0=A4=B5=E0=A4=BE=E0=A4=B0) wrote: > >> On Thu, Nov 7, 2019 at 5:30 AM Jonas Bonn wrote: > >>> > >>> Changed in v3: > >>> - added patch 6 for setting IPv6 address outside current namespace > >>> - address checkpatch warnings > >>> - address comment from Nicolas > >>> > >>> Changed in v2: > >>> - address comment from Nicolas > >>> - add accumulated ACK's > >>> > >>> Currently, Netlink has partial support for acting outside of the curr= ent > >>> namespace. It appears that the intention was to extend this to all t= he > >>> methods eventually, but it hasn't been done to date. > >>> > >>> With this series RTM_SETLINK, RTM_NEWLINK, RTM_NEWADDR, and RTM_NEWNS= ID > >>> are extended to respect the selection of the namespace to work in. > >>> > >> This is nice, is there a plan to update userspace commands using this? > > > > I'm hoping for an iproute2 update and test cases to validate the change= s. > > > > I'm looking into it. The change to iproute2 to support > (namespace,index) pairs instead of just (index) to identify interfaces > looks to be invasive. The rest of it looks like trivial changes. > > I've got all these kernel patches tested against my own "namespace aware > network manager" that I'm writing for a customer with a particular use > case. iproute2 wasn't actually in play here. > I'll echo David's comment for iproute2 as well as tests to ensure this new behavior is usable and healthy. > /Jonas