Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2665799ybx; Fri, 8 Nov 2019 07:38:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx1qfE7mUsP/zgsEP/dV7ezMbutPwfBHDRVNJp8yY+WOg0TSa+Uscj8aSic3rQEefBE/HH9 X-Received: by 2002:a17:907:110f:: with SMTP id qu15mr9304871ejb.179.1573227513869; Fri, 08 Nov 2019 07:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573227513; cv=none; d=google.com; s=arc-20160816; b=lrsMVgjzRUZPV78M5fhQQkEhH/2PMPzYsL+mi2guR4WEfV4p7aPB3I/yg0GCs53B1B O7oyCbOpLQOsLDdzRschO2erSkR2QYYrQMdp/A/7emJdCpLXrWE4QxpE5+pg5eT38AaL ic29wrNZv8avDy97Qocogwx3wLAm2Zr4gON8+ZXfpG5XqN95D9ZVeKY8TnVhTDCiMeAO tdEJQhPF4lyTrnkS+5ltpYf46oEnrACCssRGuFnsiREiLhoIVJPQoXz8SyyGDpp3r2oL J8ReB/PvENaH2b02Gn26bIkLqu/iGri48GAGNmw7ZtsfZDtdyHEWBnBHP6VT92wRkr0x 04WQ== 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:from:references:cc:to:subject:dkim-signature; bh=2pe6fLgoaZ20F6d1ALx8ua+vYps6HC8ap7HyPfV+7qA=; b=WO3i3ueSMopc0w67mBjaO+aIyMmw5pplHzWJhCmz6SXaPRt19/XxpiubMIa7udkl5e Hip/LBIiYtSpJnKvXf5nSwKMW0K/Ju9mkniITcTgi9fQmpepzE3AxM/vR4utPNy7M2bB jgrmDh6rCS1BPS7yo5lFTKr2Ktn+H/rn2MFnTKSSwHid5rArkMj4bXMkTg+dqD0DirG3 WvyxiUMoyUlvtBB6gI1txwwIKisbMeE/3scmFY6DeX1C/D98T6YLBqfMwtMbYnb+ZDrR ogMqw6lJXXsOwqvbb4ATX+S26ccOsPaUJsZTUOE9DLmyZQBJciqmWAHR0dXCcBB6L28S GNrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=hrJLm8NT; 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 f21si4747523ede.253.2019.11.08.07.38.10; Fri, 08 Nov 2019 07:38:33 -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=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=hrJLm8NT; 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 S1727419AbfKHPgw (ORCPT + 99 others); Fri, 8 Nov 2019 10:36:52 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45941 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbfKHPgw (ORCPT ); Fri, 8 Nov 2019 10:36:52 -0500 Received: by mail-lj1-f195.google.com with SMTP id n21so6651062ljg.12 for ; Fri, 08 Nov 2019 07:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=norrbonn-se.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2pe6fLgoaZ20F6d1ALx8ua+vYps6HC8ap7HyPfV+7qA=; b=hrJLm8NT5gvZlCLVkDal51GeCoaKTjY3KJCkYz2j5LVZ+4oYahm+oTar+PhaGjcYwF Igw4em3xySiJL8DsHAdByg4PeswhflQq/4q/J70XFPzXdF1Wc8Rr15NEiV78eWG/51RB XEU3Cxpt44PGidtswt/SH/Wa0gfVqq8VxC+WIS1ubqtu8ZEApFD3XGSOdwv798ltSt3+ JOMLZ9Uv8bxKRzVRT7qGi+uOrerthzymaeSnZBlU/eKv0fpHoH40MGb6olgJEzRHplh5 BGHGZ/hSZ9QGDtNe8+SnoSeOWzyvb59rXaqUgRbnfag6y7wiNqZoWa19bNOwTtuh+jDu SrWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2pe6fLgoaZ20F6d1ALx8ua+vYps6HC8ap7HyPfV+7qA=; b=ujn4ofILBwOqjXX0tcDJkYHmFs34/es18NmTagy/W9LJN5pFAs8AWokw9guxUxb028 iN3lbp/nscSeE0G9Q5FS+NsFSDK7pI/+8aK73B/UyBioWIn9rV+qDzEc/4h9Yi3hQ9pk oy2ns3i/oDmn7Ex3ndEBbWUAyoIAm8oWd727aaLfm628jlWsy4jM8qmugnxLgi9BqkD4 xQRYqVd3Vk7K26WRZUoCpX2d+1O0+QJAcwObtKIsjxI/08eFntTh6pzqIGu2TDQOlkVg Pw0LFP6/HAoFhbC5Z020SdiQ6iqDRoJM3NWvbxQoo84OqoJqi9E4oKOUPsiVBkXR53P1 73uw== X-Gm-Message-State: APjAAAUXs8rA9WKKdDF2XBqGlPHl2eZUho1mDlyv1+ACmE+womwRkTtz JcfjKEsWtqubvDUX+0Q7570YRg== X-Received: by 2002:a2e:81d2:: with SMTP id s18mr7088062ljg.189.1573227409814; Fri, 08 Nov 2019 07:36:49 -0800 (PST) Received: from [10.0.156.104] ([195.22.87.57]) by smtp.gmail.com with ESMTPSA id q16sm1072855lfm.87.2019.11.08.07.36.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Nov 2019 07:36:48 -0800 (PST) Subject: Re: [PATCH v3 0/6] Add namespace awareness to Netlink methods To: David Ahern , =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS14KS+?= =?UTF-8?B?4KSwKQ==?= Cc: nicolas.dichtel@6wind.com, linux-netdev , linux-kernel@vger.kernel.org, David Miller References: <20191107132755.8517-1-jonas@norrbonn.se> From: Jonas Bonn Message-ID: <229cdce6-f510-5d9f-401b-69bad4af0722@norrbonn.se> Date: Fri, 8 Nov 2019 16:36:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 On 07/11/2019 22:11, David Ahern wrote: > On 11/7/19 1:40 PM, Mahesh Bandewar (महेश बंडेवार) 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 current >>> namespace. It appears that the intention was to extend this to all the >>> methods eventually, but it hasn't been done to date. >>> >>> With this series RTM_SETLINK, RTM_NEWLINK, RTM_NEWADDR, and RTM_NEWNSID >>> 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 changes. > 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. /Jonas