Received: by 10.223.176.46 with SMTP id f43csp820714wra; Wed, 24 Jan 2018 06:29:21 -0800 (PST) X-Google-Smtp-Source: AH8x224F+lmFxotLzNY0y3vjewigITcBDpP0kC+8AtIWYFBeTTH6jde3kTh1+XBHgp/pq5I+1AXa X-Received: by 10.98.58.5 with SMTP id h5mr13021782pfa.169.1516804161873; Wed, 24 Jan 2018 06:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516804161; cv=none; d=google.com; s=arc-20160816; b=ruy1YeAXoucnNRssHT5LIaHnFIikyGM0fjbKh7HlvS27kvZ6oPgWzAybjbl3RFWKtX qTZ8F9grjbvmCFgIfvnbQ5H+qt9ehD/xzi3p1z2opxgRp3nV8sLaYDPVq3dI4366cM6b jLzCl3XczRguUbnUyrfmtenM3Zo9dMS482yPZWuIUNFKfKd/tv4PF81vjN5L32XG4srv RIwlmamVHk+WEDR8eh9q7aMgeHHR6C9ibxnLV+uU7XesdKOUckUKaP2gyH2RkUaxXpnp rGuMK0DtNOFLABvNW+uy4MXMu/yR2dCpaRwVDOEmO+9sqiibVmViL/bB/n47ve0NRTJj 9sYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=N0/SRmxOQx6ibysn6Eu5GtkcCKBwkhyuLGt5bpuH3Sc=; b=d+3riWnlfzVXlYZwcMfHb22qMgI7vdyE/faQj/OJ1IjXKOTAfvoGMLRPFWXWdySNoK u7BaQHaRLQgaZX7FxmZGJ+41u9B9LtQI05nnnqDK0DM2AH4R8H+ZpIbiHF9lHhy0ntEV DHeZVIBaayY7T58EiQ1zoPw99YZo05X6pYcwmK75d1oJ4v+D8/DrzRqR1Se4kPjbRjjx SUU9gWn1vEQRvcBO+XcQJXW1r3muTKzYbMngVbHKjALsJa780jeCeI9yxuSMMohBJxYU Rhl3pDT4kpfcL+ET/oTmo8QwAgenxbEEv2ndwbSFMYkzlVkBpghY5bzxxUBiphbOQyQ9 5F+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M5JqQa4l; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2-v6si286016plk.478.2018.01.24.06.29.08; Wed, 24 Jan 2018 06:29:21 -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=@gmail.com header.s=20161025 header.b=M5JqQa4l; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934034AbeAXO0v (ORCPT + 99 others); Wed, 24 Jan 2018 09:26:51 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:40486 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933830AbeAXO0s (ORCPT ); Wed, 24 Jan 2018 09:26:48 -0500 Received: by mail-wr0-f193.google.com with SMTP id 100so4229091wrb.7; Wed, 24 Jan 2018 06:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=N0/SRmxOQx6ibysn6Eu5GtkcCKBwkhyuLGt5bpuH3Sc=; b=M5JqQa4l7vc9qSGhv/IPVBVySDMOM8Ixu6GsjvlsO0AuSStUFH6sSF0ekMREVTPiLQ yXF196WzPxQxT49hKzbsCw6cUx7q3exKIycwoheocYLrBjJJ90PbJ8S+vl7SlPqXTGic OIOtO6cvPoIrpLp8v1Nm3SfRsuLW0HVqoMLpjfFlSSG28ROCBTocWuMDdO3g642qVNhy TgDy1AeprAWFxrqIBXTkjavAXdaXoqKt4umYNjvQ7DmkkFVo5TlmgeTFHWZbdlo7sLvo WZ8GNxKXcR7NVgyTFIC3CWnfnK8ZrJXAp5QNdIF3h2lEx+kM0ceUZ27xjS40s6HM0pNm otFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=N0/SRmxOQx6ibysn6Eu5GtkcCKBwkhyuLGt5bpuH3Sc=; b=Q1n6zv1OHjqmsFtzbSUutSA/ZlKHfNzeTepHq52xD6aWoY+ota4mOwjR8wqQYGYw+q q7zwuM6CJsvmeyWYVfmNlqlkFw8sZVYoanBIEa5X99RxAbx2eWdBxFVPwlLqH9NdZ/Up fi2LMNP+ykcran5jP4FQnr0kG0/4XgLezxl5vVDBTt6isDFM/GV14FJs6J15ZPiJsNjO F8EDnO2BqSbhMTbm2JNIzinLj8CwKW6swU0r8tkPb56LRvQW2Ucd0xsj+Whi+9mCjXep wEuWgUOmSVtKyMVONci4cm/Lsd/4ekeHKHR4VPL7IQ4p+YAmTutSmjnR27VNPSCQIiT/ WQbw== X-Gm-Message-State: AKwxytdZvbITE0yqwhxljdB3dXekC4eeLWb/i0ZKhUuCq478cAXUKKFK buUOiHVc7IUaLGrREhXP8PhEMafd+bw= X-Received: by 10.223.135.115 with SMTP id 48mr6254644wrz.212.1516804006960; Wed, 24 Jan 2018 06:26:46 -0800 (PST) Received: from localhost.localdomain (eap108107.extern.uni-tuebingen.de. [134.2.108.107]) by smtp.gmail.com with ESMTPSA id q48sm3992178wrb.31.2018.01.24.06.26.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 06:26:46 -0800 (PST) From: Christian Brauner X-Google-Original-From: Christian Brauner To: netdev@vger.kernel.org Cc: 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, jbenc@redhat.com, w.bumiller@proxmox.com, nicolas.dichtel@6wind.com, Christian Brauner Subject: [PATCH net-next 0/3 V1] rtnetlink: enable IFLA_IF_NETNSID for RTM_{DEL,SET}LINK Date: Wed, 24 Jan 2018 15:26:31 +0100 Message-Id: <20180124142634.17766-1-christian.brauner@ubuntu.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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