Lines Matching refs:vnic_id

2769 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id)  in bnxt_hwrm_cfa_l2_set_rx_mask()  argument
2772 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_cfa_l2_set_rx_mask()
2850 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx, in bnxt_hwrm_set_vnic_filter() argument
2860 req.dst_vnic_id = cpu_to_le16(bp->vnic_info[vnic_id].fw_vnic_id); in bnxt_hwrm_set_vnic_filter()
2876 bp->vnic_info[vnic_id].fw_l2_filter_id[idx] = in bnxt_hwrm_set_vnic_filter()
2910 static int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, u16 vnic_id, u32 tpa_flags) in bnxt_hwrm_vnic_set_tpa() argument
2912 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_tpa()
2952 req.vnic_id = cpu_to_le16(vnic->fw_vnic_id); in bnxt_hwrm_vnic_set_tpa()
2957 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, u16 vnic_id, bool set_rss) in bnxt_hwrm_vnic_set_rss() argument
2960 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_rss()
2995 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_set_hds() argument
2997 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_hds()
3010 req.vnic_id = cpu_to_le32(vnic->fw_vnic_id); in bnxt_hwrm_vnic_set_hds()
3014 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_ctx_free_one() argument
3020 cpu_to_le16(bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx); in bnxt_hwrm_vnic_ctx_free_one()
3023 bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx = INVALID_HW_RING_ID; in bnxt_hwrm_vnic_ctx_free_one()
3039 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_ctx_alloc() argument
3052 bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx = in bnxt_hwrm_vnic_ctx_alloc()
3059 static int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_cfg() argument
3062 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_cfg()
3074 grp_idx = vnic_id - 1; in bnxt_hwrm_vnic_cfg()
3076 req.vnic_id = cpu_to_le16(vnic->fw_vnic_id); in bnxt_hwrm_vnic_cfg()
3089 static int bnxt_hwrm_vnic_free_one(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_free_one() argument
3093 if (bp->vnic_info[vnic_id].fw_vnic_id != INVALID_HW_RING_ID) { in bnxt_hwrm_vnic_free_one()
3097 req.vnic_id = in bnxt_hwrm_vnic_free_one()
3098 cpu_to_le32(bp->vnic_info[vnic_id].fw_vnic_id); in bnxt_hwrm_vnic_free_one()
3103 bp->vnic_info[vnic_id].fw_vnic_id = INVALID_HW_RING_ID; in bnxt_hwrm_vnic_free_one()
3116 static int bnxt_hwrm_vnic_alloc(struct bnxt *bp, u16 vnic_id, u16 start_grp_id, in bnxt_hwrm_vnic_alloc() argument
3130 bp->vnic_info[vnic_id].fw_grp_ids[j] = in bnxt_hwrm_vnic_alloc()
3134 bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx = INVALID_HW_RING_ID; in bnxt_hwrm_vnic_alloc()
3135 if (vnic_id == 0) in bnxt_hwrm_vnic_alloc()
3143 bp->vnic_info[vnic_id].fw_vnic_id = le32_to_cpu(resp->vnic_id); in bnxt_hwrm_vnic_alloc()
3816 static int bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id) in bnxt_setup_vnic() argument
3821 rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic_id); in bnxt_setup_vnic()
3824 vnic_id, rc); in bnxt_setup_vnic()
3830 rc = bnxt_hwrm_vnic_cfg(bp, vnic_id); in bnxt_setup_vnic()
3833 vnic_id, rc); in bnxt_setup_vnic()
3838 rc = bnxt_hwrm_vnic_set_rss(bp, vnic_id, true); in bnxt_setup_vnic()
3841 vnic_id, rc); in bnxt_setup_vnic()
3846 rc = bnxt_hwrm_vnic_set_hds(bp, vnic_id); in bnxt_setup_vnic()
3849 vnic_id, rc); in bnxt_setup_vnic()
3863 u16 vnic_id = i + 1; in bnxt_alloc_rfs_vnics() local
3866 if (vnic_id >= bp->nr_vnics) in bnxt_alloc_rfs_vnics()
3869 bp->vnic_info[vnic_id].flags |= BNXT_VNIC_RFS_FLAG; in bnxt_alloc_rfs_vnics()
3870 rc = bnxt_hwrm_vnic_alloc(bp, vnic_id, ring_id, ring_id + 1); in bnxt_alloc_rfs_vnics()
3873 vnic_id, rc); in bnxt_alloc_rfs_vnics()
3876 rc = bnxt_setup_vnic(bp, vnic_id); in bnxt_alloc_rfs_vnics()