]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Do not setup MAC address in bnxt_hwrm_func_qcaps().
authorMichael Chan <michael.chan@broadcom.com>
Wed, 23 Aug 2017 23:34:05 +0000 (19:34 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 04:48:19 +0000 (20:48 -0800)
commit653b45bef32fe5470e66a090de16044a06aa5132
tree9b38c9649edbddf1035c1e1349104e410050637b
parent81397871fea094476db25dccd6f34c957d128593
bnxt_en: Do not setup MAC address in bnxt_hwrm_func_qcaps().

Orabug: 2764835527648339

bnxt_hwrm_func_qcaps() is called during probe to get all device
resources and it also sets up the factory MAC address.  The same function
is called when SRIOV is disabled to reclaim all resources.  If
the MAC address has been overridden by a user administered MAC
address, calling this function will overwrite it.

Separate the logic that sets up the default MAC address into a new
function bnxt_init_mac_addr() that is only called during probe time.

Fixes: 4a21b49b34c0 ("bnxt_en: Improve VF resource accounting.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit a22a6ac2ff8080c87e446e20592725c064229c71)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c