]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2adbd2a9ae501bc0a1ed11679ba13216b7eb607c
tree05e5d7538d1c6d21ee312574d8307a5f7bddd47a
parent7aefd371fd21a951e1737bac355e8b0d4995f7a9
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