From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Hartkopp Subject: Re: displayed name changed in ip link show for bridge- and other interfaces Date: Sun, 14 Jun 2015 21:12:14 +0200 Message-ID: <557DD20E.4080005@hartkopp.net> References: <201506141200.20435.ulrich.gemkow@ikr.uni-stuttgart.de> <557DCD0A.5040500@hartkopp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Ulrich Gemkow , netdev@vger.kernel.org, Nicolas Dichtel Return-path: Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]:9607 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbbFNTMT (ORCPT ); Sun, 14 Jun 2015 15:12:19 -0400 In-Reply-To: <557DCD0A.5040500@hartkopp.net> Sender: netdev-owner@vger.kernel.org List-ID: @Nicolas: Just saw that you were not responsible for the @NONE m) Sorry. Btw. do you know why this @NONE stuff just emerged in 4.1-rc ? Regards, Oliver On 14.06.2015 20:50, Oliver Hartkopp wrote: > On 14.06.2015 12:00, Ulrich Gemkow wrote: > >> between Linux 4.0.5 and 4.1-rc7 the name as shown by "ip link show" >> of bridge interfaces (and at least the dummy interface) changed from >> (i.e.) br1 to br1@NONE. >> >> This breaks (at least for me :-) userspace (ip link show parsing >> scripts). It is easy to solve, so not a big problem. I am using >> Ubuntu 14.04. >> >> Is this user visible change intended? >> > > Hi Ulrich, > > looking at iproute2 I found this patch: > > http://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/ip/ipaddress.c?id=ccdcbf35f120c754660b3b3f48fa67cc950a6407 > > > > iplink: add support of IFLA_LINK_NETNSID attribute > > This new attribute is now advertised by the kernel for x-netns interfaces. > > It's also possible to set it when an interface is created (and thus > > creating a x-netns interface with one single message). > > Due to the fact that the kernel now provides the new attribute we get this > @NONE stuff for interfaces that have no iflink value. > > This definitely is @UGLY ! > > @Nicloas: Why don't you just omit the @NONE when iflink is zero in the new > attribute? > > Regards, > Oliver > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html