if (ether_addr_equal(addr->sa_data, adapter->dev_mac))
return 0;
- /* BE3 VFs without FILTMGMT privilege are not allowed to set its MAC
- * address
- */
- if (BEx_chip(adapter) && be_virtfn(adapter) &&
- !check_privilege(adapter, BE_PRIV_FILTMGMT))
- return -EPERM;
-
/* if device is not running, copy MAC to netdev->dev_addr */
if (!netif_running(netdev))
goto done;
return status;
/* For BE3 VFs, the PF programs the initial MAC address */
- if (!BEx_chip(adapter) || !be_virtfn(adapter) ||
- check_privilege(adapter, BE_PRIV_FILTMGMT)) {
+ if (!(BEx_chip(adapter) && be_virtfn(adapter))) {
status = be_cmd_pmac_add(adapter, adapter->netdev->dev_addr,
adapter->if_handle,
&adapter->pmac_id[0], 0);