|
|
@@ -715,8 +715,7 @@ static int ixgbe_set_vf_mac_addr(struct ixgbe_adapter *adapter,
|
|
|
}
|
|
|
|
|
|
if (adapter->vfinfo[vf].pf_set_mac &&
|
|
|
- memcmp(adapter->vfinfo[vf].vf_mac_addresses, new_mac,
|
|
|
- ETH_ALEN)) {
|
|
|
+ !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) {
|
|
|
e_warn(drv,
|
|
|
"VF %d attempted to override administratively set MAC address\n"
|
|
|
"Reload the VF driver to resume operations\n",
|