freebsd-skq/sys/powerpc
luporl dd2eb48e68 [PPC64] pseries llan: fix MAC address
There was an issue in pseries llan driver, that resulted in the first 2 bytes
of the MAC address getting stripped, and the last 2 being always 0.

In most cases the network interface still worked, despite the MAC being
different of what was specified to QEMU, but when some other host or DHCP
server expected a specific MAC, this would fail.

This change fixes this by shifting right by 2 the local-mac-address read from
device tree, if its length is 6 instead of 8, as observed in QEMU DT, that
always presents a 6 bytes value for this property.

PR:		237471
Reported by:	Alfredo Dal'Ava Junior
Reviewed by:	jhibbits
Differential Revision:	https://reviews.freebsd.org/D20843
2019-07-04 12:31:24 +00:00
..
aim Fix PPC970 boot after r348783 2019-06-12 15:58:11 +00:00
booke powerpc/booke: It helps to set variables before using them 2019-05-23 03:40:48 +00:00
conf sys: Remove DEV_RANDOM device option 2019-06-21 00:16:30 +00:00
cpufreq
fpu
include powerpc/booke: Handle misaligned floating point loads/stores as on AIM 2019-06-26 01:14:39 +00:00
mambo
mikrotik
mpc85xx powerpc/mpc85xx: Use the proper (EREF) form of writing to DBCR0 2019-05-23 03:47:25 +00:00
ofw Fix bug on newbus device deletion: we should delete the child's devinfo 2019-06-16 21:56:45 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv powernv: Port HMI handler to use the message framework 2019-06-10 03:24:38 +00:00
powerpc powerpc/booke: Handle misaligned floating point loads/stores as on AIM 2019-06-26 01:14:39 +00:00
ps3 Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
pseries [PPC64] pseries llan: fix MAC address 2019-07-04 12:31:24 +00:00
psim