]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Call firmware to approve the random VF MAC address.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 19 Sep 2016 07:58:06 +0000 (03:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2016 01:32:25 +0000 (21:32 -0400)
commit6ad9c441e963e1883bcaf2384cf629257d4d5310
tree9712ba3fcf602b12310d32131b021df7ad53ed57
parent7920bbe292a7d7c4c3e3e402f958848a49291494
bnxt_en: Call firmware to approve the random VF MAC address.

After generating the random MAC address for VF, call the firmware to
approve it.  This step serves 2 purposes.  Some hypervisor (e.g. ESX)
wants to approve the MAC address.  2nd, the call will setup the
proper forwarding database in the internal switch.

We need to unlock the hwrm_cmd_lock mutex before calling bnxt_approve_mac().
We can do that because we are at the end of the function and all the
previous firmware response data has been copied.

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