]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2013 20:58:02 +0000 (16:58 -0400)
commitee713c1a73a490d6fac3c0a834ccc40903edd81f
tree9dc878e404b40efbbb69451e360a406c8aaffdae
parentb27379ba63830bf1b5d516ae5ca0d63b60d69be0
net/eth/ibmveth: Fixup retrieval of MAC address

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>
CC: <stable@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c