qed* : use trust mode to allow VF to override forced MAC
authorShahed Shaikh <shahed.shaikh@cavium.com>
Thu, 19 Apr 2018 12:50:11 +0000 (05:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Apr 2018 15:26:36 +0000 (11:26 -0400)
commit7425d8220f8d0c2127aec75677f652a26f86bc95
tree05e5d7538d1c6d21ee312574d8307a5f7bddd47a
parent2ed021255b8a1351209d9407bcae41f5ff6657c7
qed* : use trust mode to allow VF to override forced MAC

As per existing behavior, when PF sets a MAC address for a VF
(also called as forced MAC), VF is not allowed to change its
MAC address afterwards.
This puts the limitation on few use cases such as bonding of VFs,
where bonding driver asks VF to change its MAC address.

This patch uses a VF trust mode to allow VF to change its MAC address
in spite PF has set a forced MAC for that VF.

Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_sriov.c
drivers/net/ethernet/qlogic/qede/qede_filter.c