]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: improve fallback to random MAC address
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Thu, 26 Apr 2018 07:42:24 +0000 (09:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 17:38:49 +0000 (13:38 -0400)
commitf8ca477c5084128991390738eb79df3f36a8f494
tree2460b89b2784dc55193c876c0398b863400324da
parent13e57b654ce3091ce6b559245954feaae8c95018
s390/qeth: improve fallback to random MAC address

If READ MAC fails to fetch a valid MAC address, allow some more device
types (IQD and z/VM OSD) to fall back to a random address.
Also use eth_hw_addr_random(), for indicating to userspace that the
address type is NET_ADDR_RANDOM.

Note that while z/VM has various protection schemes to prohibit
custom addresses on its NICs, they are all optional. So we should at
least give it a try.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c