mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
ixgbe: use eth_zero_addr() to clear mac address
Use eth_zero_addr() to clear mac address instead of memset(). Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
09a071f52b
commit
935f73bd51
@ -783,7 +783,7 @@ static int ixgbe_set_vf_mac(struct ixgbe_adapter *adapter,
|
||||
memcpy(adapter->vfinfo[vf].vf_mac_addresses, mac_addr,
|
||||
ETH_ALEN);
|
||||
else
|
||||
memset(adapter->vfinfo[vf].vf_mac_addresses, 0, ETH_ALEN);
|
||||
eth_zero_addr(adapter->vfinfo[vf].vf_mac_addresses);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user