net/eth/ibmveth: Fixup retrieval of MAC address
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 May 2013 17:19:01 +0000 (17:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 14:18:20 +0000 (07:18 -0700)
commite21673211b417ab7177ffbc1dfd3b410db303bfc
treed0c8ba6bba09bb11e9e777c376e0253d4fd261bd
parent29e671b541848c4f0e0a3f55d249e1975e6c512a
net/eth/ibmveth: Fixup retrieval of MAC address

commit 13f85203e1060da83d9ec1c1c5a63343eaab8de4 upstream.

Some ancient pHyp versions used to create a 8 bytes local-mac-address
property in the device-tree instead of a 6 bytes one for veth.

The Linux driver code to deal with that is an insane hack which also
happens to break with some choices of MAC addresses in qemu by testing
for a bit in the address rather than just looking at the size of the
property.

Sanitize this by doing the latter instead.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmveth.c