|
@@ -3253,12 +3253,10 @@ static int be_mac_setup(struct be_adapter *adapter)
|
|
|
memcpy(mac, adapter->netdev->dev_addr, ETH_ALEN);
|
|
|
}
|
|
|
|
|
|
- /* On BE3 VFs this cmd may fail due to lack of privilege.
|
|
|
- * Ignore the failure as in this case pmac_id is fetched
|
|
|
- * in the IFACE_CREATE cmd.
|
|
|
- */
|
|
|
- be_cmd_pmac_add(adapter, mac, adapter->if_handle,
|
|
|
- &adapter->pmac_id[0], 0);
|
|
|
+ /* For BE3-R VFs, the PF programs the initial MAC address */
|
|
|
+ if (!(BEx_chip(adapter) && be_virtfn(adapter)))
|
|
|
+ be_cmd_pmac_add(adapter, mac, adapter->if_handle,
|
|
|
+ &adapter->pmac_id[0], 0);
|
|
|
return 0;
|
|
|
}
|
|
|
|