From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934203AbeAXPYk (ORCPT ); Wed, 24 Jan 2018 10:24:40 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:41783 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933953AbeAXPYi (ORCPT ); Wed, 24 Jan 2018 10:24:38 -0500 X-Google-Smtp-Source: AH8x226vuyk+0BvPBCbTkDYWAV+VFgooasloPT+zNPkqtDUjG4MI5EjcmcblmSQvSWnMR3OihD9AYA== Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 0/3 V1] rtnetlink: enable IFLA_IF_NETNSID for RTM_{DEL,SET}LINK References: <20180124142634.17766-1-christian.brauner@ubuntu.com> To: Christian Brauner , 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, Christian Brauner From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Wed, 24 Jan 2018 16:24:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180124142634.17766-1-christian.brauner@ubuntu.com> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le 24/01/2018 à 15:26, Christian Brauner a écrit : > 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. I wonder if it would be possible to do something in the netlink framework, like NETLINK_LISTEN_ALL_NSID. Having some ancillary data at the netlink socket level and a function like nlsock_net() (instead of sock_net()) to get the corresponding netns. With that, it would be possible, in a generci way, to support this feature for all netlink family. Regards, Nicolas