ethernet: Use eth_random_addr
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
@@ -199,7 +199,7 @@ int atl1c_read_mac_addr(struct atl1c_hw *hw)
|
||||
|
||||
err = atl1c_get_permanent_address(hw);
|
||||
if (err)
|
||||
random_ether_addr(hw->perm_mac_addr);
|
||||
eth_random_addr(hw->perm_mac_addr);
|
||||
|
||||
memcpy(hw->mac_addr, hw->perm_mac_addr, sizeof(hw->perm_mac_addr));
|
||||
return err;
|
||||
|
@@ -538,7 +538,7 @@ static s32 atl1_read_mac_addr(struct atl1_hw *hw)
|
||||
u16 i;
|
||||
|
||||
if (atl1_get_permanent_address(hw)) {
|
||||
random_ether_addr(hw->perm_mac_addr);
|
||||
eth_random_addr(hw->perm_mac_addr);
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
|
@@ -2346,7 +2346,7 @@ static s32 atl2_read_mac_addr(struct atl2_hw *hw)
|
||||
{
|
||||
if (get_permanent_address(hw)) {
|
||||
/* for test */
|
||||
/* FIXME: shouldn't we use random_ether_addr() here? */
|
||||
/* FIXME: shouldn't we use eth_random_addr() here? */
|
||||
hw->perm_mac_addr[0] = 0x00;
|
||||
hw->perm_mac_addr[1] = 0x13;
|
||||
hw->perm_mac_addr[2] = 0x74;
|
||||
|
在新工单中引用
屏蔽一个用户