bnxt_en: Refactor bnxt_sriov_enable().
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:54:50 +0000 (23:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:18 +0000 (14:02 -0700)
commit702d5011ab5e7b9afe44058d33a89d1501645a10
tree07da95566dc6ee94073da1a412ec7fda45810027
parentba642ab773db97c32293547485f562d2dfc06666
bnxt_en: Refactor bnxt_sriov_enable().

Refactor the hardware/firmware configuration portion in
bnxt_sriov_enable() into a new function bnxt_cfg_hw_sriov().  This
new function can be called after a firmware reset to reconfigure the
VFs previously enabled.

v2: straight refactor of the code.  Reordering done in the next patch.

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