From: Andrew Lunn Subject: Re: [PATCH RFC net-next] net: Allow name change of IFF_UP interfaces Date: Thu, 10 Aug 2017 18:27:22 +0200 Message-ID: <20170810162722.GH24790@lunn.ch> References: <20170809104202.30959-1-vkuznets@redhat.com> <87efskye74.fsf@vitty.brq.redhat.com> <20170809161027.GA28694@lunn.ch> <871sojyfv0.fsf@vitty.brq.redhat.com> <1502355817.4936.9.camel@edumazet-glaptop3.roam.corp.google.com> <87poc3wxkl.fsf@vitty.brq.redhat.com> <20170810141358.GD24790@lunn.ch> <87lgmrsawo.fsf@vitty.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Eric Dumazet , network dev , "David S. Miller" , Eric Dumazet , Stephen Hemminger To: Vitaly Kuznetsov Return-path: Received: from vps0.lunn.ch ([178.209.37.122]:59829 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752339AbdHJQ11 (ORCPT ); Thu, 10 Aug 2017 12:27:27 -0400 Content-Disposition: inline In-Reply-To: <87lgmrsawo.fsf@vitty.brq.redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Aug 10, 2017 at 05:24:55PM +0200, Vitaly Kuznetsov wrote: > Andrew Lunn writes: > > >> We are - rtnetlink_event() does the job. We, however, don't have a > >> special IFLA_EVENT_* for name change and end up with IFLA_EVENT_NONE. > > > > What is in this event? Old and new name? Just the new name? > > Basically, it's everything we know about the interface - type, index, > name, mtu, qdisc, ... - see rtnl_fill_ifinfo(). Back to your question - > it's only the new name. So the program needs to keep track of ifindex to know which interface has changed name. Doable. I still expect this has the potential to break something. You probably should be asking on linux-api for the API experts opinion. Andrew