]> 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)
commit67be04ddcc5d667f7714b4d7d09b0138685d3aef
tree07da95566dc6ee94073da1a412ec7fda45810027
parent6a28302e3655e739f7473edc93a758bc29fc530f
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