UML net: set addr_assign_type if random_ether_addr() used
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 17 Feb 2012 21:05:03 +0000 (16:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2012 21:05:03 +0000 (16:05 -0500)
commit95f2054f167f7da72b0771984dbb2bec612740d0
tree20480035754898da3f36f4a5cd0c74dd3c5fc609
parent6a214fd4142d585ef2226e8ef6bc29a15403506f
UML net: set addr_assign_type if random_ether_addr() used

Set addr_assign_type correctly to NET_ADDR_RANDOM in case
a random MAC address was generated and assigned to the netdevice.

Return state from setup_etheraddr() about returning a random
MAC address or not and check this state in eth_configure().

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/um/drivers/net_kern.c