Received: by 10.223.176.46 with SMTP id f43csp2098987wra; Thu, 25 Jan 2018 05:01:17 -0800 (PST) X-Google-Smtp-Source: AH8x225szUdC3kfb44yW4CpmV+qxwqYMYJpiHV3HwvlT+0FymEdKR2etWvhwaV5jy0UJ1ZNx5cuM X-Received: by 2002:a17:902:b2c1:: with SMTP id x1-v6mr11284951plw.85.1516885277822; Thu, 25 Jan 2018 05:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516885277; cv=none; d=google.com; s=arc-20160816; b=yQzkqHgWm/ibyT0YKD6Q61LYnpVMCJqen+S/3xfxsk8hlsA9XzE2hPdsP17Zfaq/QX fA3IK7/ttIXhVfxywN5VARv1KGNge+8Uh1aN2TPGDHF954c39gljCd+YUYzURhIz5so7 chyCn+dA4WqCivsjEnPYDg+lezZlA16SP12jCaXIW288y+SJjx0qrSEOi4fqQn+ehz7V M0/GF80VbzJGPidU1x7wrl8/udiTKHyvRXCKGsrQyepXGVssoyPVex+91eCm6mM0ClwQ 6ZABM47rAET8e0r6iv6JWK6vMg2f6A1RqCvNPsPznz/g6pAbhO4v4Wy/98oUfj17k3lI eltA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:arc-authentication-results; bh=l4VbZW8ZUoGAgdcoFZK42lWu/HhKSlCb1JsAhOGDerk=; b=G7Axb9Fko+6wwRRIpXVgwXwQA/LdU/alKY+gfIM/JMn6H6t9SkXTZnpuaoV3OSRBHu jxnWrosZiqGx5YozDuXXEmqjkBRIJOW2dSs4BdTo40mVAukaG7x5yp0qAxfpST191OJk 2uKVzeGbwoG5aGpTxTsTMJaZ4Kr9jUyXU5z0TC3Z1+bcLEuNDZyI5nAiOF1C9b/ngDn8 1VzjwZXz6wSnmkdzFi6xeCNMh0jevpacOb2/woj9kNQpC93XYGngTC9Fu5xbz8l2YIWO TgWsW5yC/M3nXbdGeDI00vse+BUxhpXJcCeL4b3neQp/Zydm0phDKqhykd1M3WCEd6BW tWLA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si4599575pfg.44.2018.01.25.05.01.03; Thu, 25 Jan 2018 05:01:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751590AbeAYM7L (ORCPT + 99 others); Thu, 25 Jan 2018 07:59:11 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:44853 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbeAYM7J (ORCPT ); Thu, 25 Jan 2018 07:59:09 -0500 Received: from mail-wm0-f70.google.com ([74.125.82.70]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1eeh7U-0000ja-BB for linux-kernel@vger.kernel.org; Thu, 25 Jan 2018 12:59:08 +0000 Received: by mail-wm0-f70.google.com with SMTP id x188so3797466wmg.2 for ; Thu, 25 Jan 2018 04:59:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=l4VbZW8ZUoGAgdcoFZK42lWu/HhKSlCb1JsAhOGDerk=; b=KI0BaCk7BWgfFnsUAiaBe90Gmu/ri9a19W2+pO02sxE3YkdmG2FI8nLKvtqGXgZrcR eKsEfAudLbhbuBM+BSkfM/fzMZQook5FwgcnrwJJk2GcXyPGNc3a80BmCZa329UOWSx4 LdabRC8mncNOpj1Vvzdxgg7f2osieWfqovd8zc66tzUd4WtsJqQ8tuqiX1MkyKNH0sBW Nf+XaO4u1ZDzueoGMFOzqTn76e0N/rnilyKr/KAjntIyVj6a6zdjg4ivCdvrQxiw5Bre a1SOTk7uqd4y048hf7O08PJHXfItAadtUXUazoZ4H9QwgI2Qizp+n6wf9VQ5KkuA3vUZ KOww== X-Gm-Message-State: AKwxytf5iSpWoy311ggc4qa8pYHa/JvbuXND9Nc8HIiDA4QBlnV5IkGC bX0M63F3/GH++LXDre9k1C28PLwkW4+XvcXe+++CCmc1VP10jarspQ+l4l0KUp7XtuRThBCsKv+ tSialo0RkUtB6Dpxdrq6bcrnL1rexTyrhi/P2uZOEGA== X-Received: by 10.223.156.131 with SMTP id d3mr2843033wre.184.1516885148076; Thu, 25 Jan 2018 04:59:08 -0800 (PST) X-Received: by 10.223.156.131 with SMTP id d3mr2843019wre.184.1516885147878; Thu, 25 Jan 2018 04:59:07 -0800 (PST) Received: from gmail.com (eap108107.extern.uni-tuebingen.de. [134.2.108.107]) by smtp.gmail.com with ESMTPSA id v75sm5591311wrc.45.2018.01.25.04.59.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jan 2018 04:59:06 -0800 (PST) From: Christian Brauner X-Google-Original-From: Christian Brauner Date: Thu, 25 Jan 2018 13:59:06 +0100 To: jbenc@redhat.com Cc: netdev@vger.kernel.org, ebiederm@xmission.com, davem@davemloft.net, dsahern@gmail.com, fw@strlen.de, daniel@iogearbox.net, lucien.xin@gmail.com, mschiffer@universe-factory.net, jakub.kicinski@netronome.com, vyasevich@gmail.com, linux-kernel@vger.kernel.org, w.bumiller@proxmox.com, nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 0/3 V1] rtnetlink: enable IFLA_IF_NETNSID for RTM_{DEL,SET}LINK Message-ID: <20180125125905.ahqrlmods5v56ucv@gmail.com> References: <20180124142634.17766-1-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180124142634.17766-1-christian.brauner@ubuntu.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 03:26:31PM +0100, Christian Brauner wrote: > Hi, > > Based on the previous discussion this enables passing a IFLA_IF_NETNSID > property along with RTM_SETLINK and RTM_DELLINK requests. The patch for > RTM_NEWLINK will be sent out in a separate patch since there are more > corner-cases to think about. > > Best, > Christian > > Changelog 2018-01-24: > * Preserve old behavior and report -ENODEV when either ifindex or ifname is > provided and IFLA_GROUP is set. Spotted by Wolfgang Bumiller. > > Christian Brauner (3): > rtnetlink: enable IFLA_IF_NETNSID in do_setlink() > rtnetlink: enable IFLA_IF_NETNSID for RTM_SETLINK > rtnetlink: enable IFLA_IF_NETNSID for RTM_DELLINK > > net/core/rtnetlink.c | 96 ++++++++++++++++++++++++++++++++++++++++------------ > 1 file changed, 75 insertions(+), 21 deletions(-) > > -- > 2.14.1 > I've done more testing around enabling IFLA_IF_NETNSID for RTM_NEWLINK as well and I think that the change is actually trivial. However, I would like to wait before sending this patch out until we have agreed on the patches for RTM_SETLINK and RTM_DELLINK in this series. Once we have merged those I can just send another small commit. Or - if changes to this patch series are required - I can just add it in a v2. Thanks Christian