[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170810.094803.1621536453262110983.davem@davemloft.net>
Date: Thu, 10 Aug 2017 09:48:03 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: andrew@...n.ch
Cc: vkuznets@...hat.com, eric.dumazet@...il.com,
netdev@...r.kernel.org, edumazet@...gle.com,
stephen@...workplumber.org
Subject: Re: [PATCH RFC net-next] net: Allow name change of IFF_UP
interfaces
From: Andrew Lunn <andrew@...n.ch>
Date: Thu, 10 Aug 2017 18:27:22 +0200
> On Thu, Aug 10, 2017 at 05:24:55PM +0200, Vitaly Kuznetsov wrote:
>> Andrew Lunn <andrew@...n.ch> 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.
But a greater point is that nobody is monitoring device renames
explicitly right now.
It's hard to legitimize imposing new requirements like this on daemons
which didn't exist before.
If they could assume the name didn't change, they probably are doing
so.
You can't expect that just because they might already be listening to
this event for device up and down tracking that they are handling
device renames.
Powered by blists - more mailing lists