Re: [PATCH v2 2/3] MIPS: OCTEON: device_tree_init: don't fill mac if already set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Feb 24, 2016 at 01:25:51PM +0300, Sergei Shtylyov wrote:
> On 2/24/2016 1:52 AM, Aaro Koskinen wrote:
> >+	old_mac = fdt_getprop(initial_boot_params, n, "local-mac-address",
> >+			      &old_len);
> >+	if (!old_mac || old_len != 6 || is_valid_ether_addr(old_mac))
> >+		return;
> 
>    So if there's no such prop or the length is not 6, you just return?

Yes, in that case the network drivers will silently switch to use a
random address. This is the same behaviour as with "normal" DT boot.

A.




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux