]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ecbb6b687b90e9ca44205bd128e0ce2cfcc1788
tree46cfaa6d6d6c10025617d690ffa6a3b4b71abc21
parent763ad7e798335de2dc27c4246891f67b3cce0d59
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