[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <66bbef72-90fb-7142-2070-07dc0c2b0ca9@gmail.com>
Date: Wed, 11 Oct 2017 08:13:45 -0600
From: David Ahern <dsahern@...il.com>
To: nicolas.dichtel@...nd.com, davem@...emloft.net
Cc: netdev@...r.kernel.org, oliver@...tkopp.net,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [PATCH net v2] net: enable interface alias removal via rtnl
On 10/11/17 6:29 AM, Nicolas Dichtel wrote:
> Le 10/10/2017 à 16:50, David Ahern a écrit :
>> On 10/10/17 6:41 AM, Nicolas Dichtel wrote:
>>> IFLA_IFALIAS is defined as NLA_STRING. It means that the minimal length of
>>> the attribute is 1 ("\0"). However, to remove an alias, the attribute
>>> length must be 0 (see dev_set_alias()).
>>>
>>> Let's define the type to NLA_BINARY, so that the alias can be removed.
>>
>> not to be pedantic, but we need to be clear that the type is changed
>> only for policy validation.
> With the comment in the code, it is clear, isn't it?
Code comment was fine; commit log -- line referenced above -- is open
for interpretation.
Powered by blists - more mailing lists