lkml.org 
[lkml]   [2019]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v5 01/22] rtnetlink: provide permanent hardware address in RTM_NEWLINK
On Tue, Mar 26, 2019 at 11:08:36AM +0100, Jiri Pirko wrote:
>
> I don't think we should put permaddr if driver did not set it. 2
> solutions:
> 1) provide a helper that driver will use to set the perm_addr. This
> helper sets a "valid bit". Then you only put IFLA_PERM_ADDRESS
> in case the "valid bit" is set.
> 2) Assuming that no driver would set permaddr to all zeroes,
> don't put IFLA_PERM_ADDRESS in case permadd is all zeroes.

I already replied to similar suggestion in v4 discussion:

http://patchwork.ozlabs.org/patch/1060164/#2117512

But I don't have really strong opinion about this. The problem with not
being able to distinguish between "no/unknown permanent address" and
"old kernel not providing the information" is going to become less
important over time.

Michal

\
 
 \ /
  Last update: 2019-03-26 11:32    [W:0.135 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site