net: use random ethernet address if invalid and not zero
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 2 Nov 2016 11:52:13 +0000 (12:52 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 7 Nov 2016 17:28:16 +0000 (11:28 -0600)
commitaa555fe9f07a21b3bbdab15aea594f3869e5ab22
treee2876fabac3e50626e8313cc994cb551107b0e2b
parent6ecf9e21b5ecd5ddfe9100cb1023ca244fe63ceb
net: use random ethernet address if invalid and not zero

Use random ethernet address if the ethernet address found
is invalid, not zero and config for random address
is defined.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/eth-uclass.c