Page MenuHomeFreeBSD

dwc: Use the MAC address from the device tree
Needs ReviewPublic

Authored by manu on Tue, Oct 20, 5:34 PM.
Tags
None
Referenced Files
F176758047: D60916.id190424.diff
Wed, Oct 21, 10:36 PM
Unknown Object (File)
Wed, Oct 21, 12:24 AM
Subscribers

Details

Reviewers
mmel
br
Group Reviewers
arm64
Summary

The bootloader usually sets the Ethernet address of the device in the
device tree (mac-address or local-mac-address), but the driver only used the
address read from the hardware, or a random one if there is none.

Use fdt_ether_get_addr() right before attaching the interface, so the address
from the device tree is preferred and the one from the hardware (or generated)
remains the fallback.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78434
Build 75317: arc lint + arc unit