]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rename dev_hw_addr_random and remove redundant second
authorJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:35:55 +0000 (21:35 +0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:35:55 +0000 (21:35 +0800)
commit1610ee91ba8387c5793ce0178bb13cf24114f4df
treecadc3cacbfa27a2e788f3218be50e7a27e7cdf71
parent323904165d21e3ea99b48f0009414bcd7f8bcb3b
rename dev_hw_addr_random and remove redundant second

Renamed dev_hw_addr_random to eth_hw_addr_random() to reflect that
this function only assign a random ethernet address (MAC). Removed
the second parameter (u8 *hwaddr), it's redundant since the also
given net_device already contains net_device->dev_addr.
Set it directly.

Adapt igbvf and ixgbevf to the changed function.

Small fix for ixgbevf_probe(): if ixgbevf_sw_init() fails
(which means the device got no dev_addr) handle the error and
jump to err_sw_init as already done by igbvf in similar case.

(cherry picked from commit 1a0d6ae5795c376bae6d012fb25e8341e4c6d5f2)
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igbvf/netdev.c
drivers/net/ixgbevf/ixgbevf_main.c
include/linux/etherdevice.h