Home
last modified time | relevance | path

Searched refs:vf_vnics (Results 1 – 1 of 1) sorted by relevance

/linux-6.15/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_sriov.c581 u16 vf_stat_ctx, vf_vnics, vf_ring_grps; in bnxt_hwrm_func_vf_resc_cfg() local
604 vf_vnics = hw_resc->max_vnics - bp->nr_vnics; in bnxt_hwrm_func_vf_resc_cfg()
627 vf_vnics >= pf->max_vfs) { in bnxt_hwrm_func_vf_resc_cfg()
631 vf_vnics = (vf_vnics - pf->max_vfs + num_vfs) / num_vfs; in bnxt_hwrm_func_vf_resc_cfg()
633 vf_vnics /= num_vfs; in bnxt_hwrm_func_vf_resc_cfg()
639 vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); in bnxt_hwrm_func_vf_resc_cfg()
644 req->min_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_vf_resc_cfg()
653 req->max_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_vf_resc_cfg()
724 vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); in bnxt_hwrm_func_cfg()
748 req->num_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_cfg()
[all …]