bnxt_en: Call bnxt_approve_mac() after the PF gives up control of the VF MAC.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 25 Apr 2021 17:45:24 +0000 (13:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:37:38 +0000 (18:37 -0700)
commit92923cc71012535cc5d760b1319675ad4c404c08
tree46cfaa6d6d6c10025617d690ffa6a3b4b71abc21
parent7b3c8e27d67e2b04c1ce099261469c12d09c13d4
bnxt_en: Call bnxt_approve_mac() after the PF gives up control of the VF MAC.

When the PF is no longer enforcing an assigned MAC address on a VF, the
VF needs to call bnxt_approve_mac() to tell the PF what MAC address it is
now using.  Otherwise it gets out of sync and the PF won't know what
MAC address the VF wants to use.  Ultimately the VF will fail when it
tries to setup the L2 MAC filter for the vnic.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c