mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue