IB/opa_vnic: Allow reset of MAC address
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Tue, 26 Sep 2017 13:44:01 +0000 (06:44 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 27 Sep 2017 15:21:57 +0000 (11:21 -0400)
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>
drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c

index 305f3a83176a42a3e0b9262c3bebe781d6f9c975..30f78587e23f69e49ab74b20f7964281d6c77025 100644 (file)
@@ -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);