]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit447809f79b2914f0271928af0af18c1699cc54ec
tree07da95566dc6ee94073da1a412ec7fda45810027
parent42b623ffed593bf845f3898aa37c58a3dd78e697
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