From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next] veth: report NEWLINK event when moving the peer device in a new namespace Date: Fri, 31 Aug 2018 09:24:31 -0600 Message-ID: <1321a4ad-75c5-358f-3a5d-1ec1549a9474@gmail.com> References: <51722660f2ef860779e227541dab77046496f135.1535712096.git.lorenzo.bianconi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Lorenzo Bianconi , davem@davemloft.net Return-path: Received: from mail-pf1-f196.google.com ([209.85.210.196]:46245 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbeHaTcf (ORCPT ); Fri, 31 Aug 2018 15:32:35 -0400 Received: by mail-pf1-f196.google.com with SMTP id u24-v6so5662218pfn.13 for ; Fri, 31 Aug 2018 08:24:35 -0700 (PDT) In-Reply-To: <51722660f2ef860779e227541dab77046496f135.1535712096.git.lorenzo.bianconi@redhat.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 8/31/18 5:43 AM, Lorenzo Bianconi wrote: > When moving a veth device to another namespace, userspace receives a > RTM_DELLINK message indicating the device has been removed from current > netns. However, the other peer does not receive a netlink event > containing new values for IFLA_LINK_NETNSID and IFLA_LINK veth > attributes. > Fix that behaviour sending to userspace a RTM_NEWLINK message in the peer > namespace to report new IFLA_LINK_NETNSID/IFLA_LINK values > A newlink message is generated in the new namespace. What information is missing from that message?