]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:07:42 +0000 (13:07 -0500)
commitd72fe49d4351614153dc825fe8e0e29e75b1ac13
tree345f2c06248ffea510aed8a2684d4e65172d0553
parent418bb50950efdeb39b0e84210b2d36ca9fa27197
bnxt_en: Call firmware to approve the random VF MAC address.

Orabug: 24567991

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>
(cherry picked from commit 001154eb242b5a6667b74e5cf20873fb75f1b9d3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c