mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-28 03:08:53 -04:00
IB/opa_vnic: Allow reset of MAC address
Ensure MAC address is reset while deleting the vesw port. Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com> Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
committed by
Doug Ledford
parent
7f291d2869
commit
5a5a85da40
@@ -130,7 +130,7 @@ void opa_vnic_process_vema_config(struct opa_vnic_adapter *adapter)
|
||||
memcpy(saddr.sa_data, info->vport.base_mac_addr,
|
||||
ARRAY_SIZE(info->vport.base_mac_addr));
|
||||
mutex_lock(&adapter->lock);
|
||||
eth_mac_addr(netdev, &saddr);
|
||||
eth_commit_mac_addr_change(netdev, &saddr);
|
||||
memcpy(adapter->vema_mac_addr,
|
||||
info->vport.base_mac_addr, ETH_ALEN);
|
||||
mutex_unlock(&adapter->lock);
|
||||
|
||||
Reference in New Issue
Block a user