]> 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)
commit77c3ac253dc194826319cc52f2671ce70af27a0f
tree05e5d7538d1c6d21ee312574d8307a5f7bddd47a
parent0ba4f8929e7e92f0c18aa1baa3c149f2080bcdfe
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