[systemd-devel] [PATCH] udev: ifname matches given mac

Tom Gundersen teg at jklm.no
Wed Jan 15 07:04:16 PST 2014


On Wed, Jan 15, 2014 at 3:57 PM, Umut Tezduyar Lindskog
<umut.tezduyar at axis.com> wrote:
> Hi Tom,
>
>> -----Original Message-----
>> From: Tom Gundersen [mailto:teg at jklm.no]
>> Sent: den 15 januari 2014 14:23
>> To: Umut Tezduyar Lindskog
>> Cc: systemd Mailing List; Umut Tezduyar Lindskog
>> Subject: Re: [systemd-devel] [PATCH] udev: ifname matches given mac
>>
>> Hi Umut,
>>
>> I'm not really convinced about this. I think we should be fairly conservative
>> about what names we consider persistent.
>>
>> The way NamePolicy=mac currently works is that it will base the name on the
>> hardware mac address (i.e., not randomly generated by the kernel, set by
>> userspace etc), and only do that if we deem it to be sane.
>
> My thought was as a user, NamePolicy=mac meant that whatever the end mac address is going to be will form the basis for my interface name. With this thought, I realized my interface name was not same as my mac address since I set the mac address from userspace. I thought this is a bug but I also see your point of view which is NamePolicy=mac means hardware's mac address as also stated in the man page.

By the way, I'd be happy to take suggestions on how the man page could
be made clearer.

Cheers,

Tom


More information about the systemd-devel mailing list