freebsd-dev/sys/powerpc/pseries
Leandro Lupori 57d0d4a271 [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
..
mmu_phyp.c [PPC64] Support QEMU/KVM pseries without hugepages 2019-06-07 17:58:59 +00:00
phyp_console.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
phyp_llan.c [PPC64] pseries llan: fix MAC address 2019-07-04 12:31:24 +00:00
phyp_vscsi.c Revert r327828, r327949, r327953, r328016-r328026, r328041: 2018-01-21 15:42:36 +00:00
phyp-hvcall.h powerpc64/pseries: Define new hcalls 2018-02-14 02:48:27 +00:00
phyp-hvcall.S powerpc64/pseries: Fix hypervisor call with extra arguments 2019-04-23 03:05:26 +00:00
platform_chrp.c powerpc: Fix regression introduced in r342771 2019-01-07 19:39:31 +00:00
plpar_iommu.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
plpar_iommu.h sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
plpar_pcibus.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
rtas_dev.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
rtas_pci.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
vdevice.c sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
xics.c [PPC] Fix build error when POWERNV is disabled 2019-06-11 11:23:15 +00:00