summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-08-30 06:54:50 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-31 00:02:18 +0300
commit702d5011ab5e7b9afe44058d33a89d1501645a10 (patch)
tree07da95566dc6ee94073da1a412ec7fda45810027 /drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
parentba642ab773db97c32293547485f562d2dfc06666 (diff)
downloadlinux-702d5011ab5e7b9afe44058d33a89d1501645a10.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
index 2eed9eda1195..0abf18e70fee 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
@@ -36,6 +36,7 @@ int bnxt_set_vf_link_state(struct net_device *, int, int);
int bnxt_set_vf_spoofchk(struct net_device *, int, bool);
int bnxt_set_vf_trust(struct net_device *dev, int vf_id, bool trust);
int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
+int bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs);
void bnxt_sriov_disable(struct bnxt *);
void bnxt_hwrm_exec_fwd_req(struct bnxt *);
void bnxt_update_vf_mac(struct bnxt *);