|
@@ -287,7 +287,7 @@ static int be_mac_addr_set(struct net_device *netdev, void *p)
|
|
/* The MAC change did not happen, either due to lack of privilege
|
|
/* The MAC change did not happen, either due to lack of privilege
|
|
* or PF didn't pre-provision.
|
|
* or PF didn't pre-provision.
|
|
*/
|
|
*/
|
|
- if (memcmp(addr->sa_data, mac, ETH_ALEN)) {
|
|
|
|
|
|
+ if (!ether_addr_equal(addr->sa_data, mac)) {
|
|
status = -EPERM;
|
|
status = -EPERM;
|
|
goto err;
|
|
goto err;
|
|
}
|
|
}
|