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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 05:42:43 +0000 (22:42 -0700)
commita22a6ac2ff8080c87e446e20592725c064229c71
treeb35c127b0f39b67f8e26ef42aac4a9d56c2eff40
parent146ed3c5b87d8c65ec31bc56df26f027fe624b8f
bnxt_en: Do not setup MAC address in bnxt_hwrm_func_qcaps().

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c