Skip to content

Commit 1d96cf9

Browse files
3chas3Jeff Kirsher
authored andcommitted
ixgbe: Extend trust to allow guest to set unicast address
When running certain routing protocols like VRRP, VF guests need the ability to set the unicast address of the interface. Extend the new ndo trust feature to let the hypervisor trust a guest to set/update its own unicast address. Signed-off-by: Chas Williams <[email protected]> Tested-by: Phil Schmitt <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent d5dd7c3 commit 1d96cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static int ixgbe_set_vf_mac_addr(struct ixgbe_adapter *adapter,
887887
return -1;
888888
}
889889

890-
if (adapter->vfinfo[vf].pf_set_mac &&
890+
if (adapter->vfinfo[vf].pf_set_mac && !adapter->vfinfo[vf].trusted &&
891891
!ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) {
892892
e_warn(drv,
893893
"VF %d attempted to override administratively set MAC address\n"

0 commit comments

Comments
 (0)