• Home
  • Raw
  • Download

Lines Matching refs:vnic_id

4760 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id)  in bnxt_hwrm_cfa_l2_set_rx_mask()  argument
4763 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_cfa_l2_set_rx_mask()
4770 req->vnic_id = cpu_to_le32(vnic->fw_vnic_id); in bnxt_hwrm_cfa_l2_set_rx_mask()
4884 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx, in bnxt_hwrm_set_vnic_filter() argument
4899 req->dst_id = cpu_to_le16(bp->vnic_info[vnic_id].fw_vnic_id); in bnxt_hwrm_set_vnic_filter()
4915 bp->vnic_info[vnic_id].fw_l2_filter_id[idx] = in bnxt_hwrm_set_vnic_filter()
4946 static int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, u16 vnic_id, u32 tpa_flags) in bnxt_hwrm_vnic_set_tpa() argument
4948 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_tpa()
5003 req->vnic_id = cpu_to_le16(vnic->fw_vnic_id); in bnxt_hwrm_vnic_set_tpa()
5146 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, u16 vnic_id, bool set_rss) in bnxt_hwrm_vnic_set_rss() argument
5148 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_rss()
5172 static int bnxt_hwrm_vnic_set_rss_p5(struct bnxt *bp, u16 vnic_id, bool set_rss) in bnxt_hwrm_vnic_set_rss_p5() argument
5174 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_rss_p5()
5184 req->vnic_id = cpu_to_le16(vnic->fw_vnic_id); in bnxt_hwrm_vnic_set_rss_p5()
5210 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_set_hds() argument
5212 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_set_hds()
5229 req->vnic_id = cpu_to_le32(vnic->fw_vnic_id); in bnxt_hwrm_vnic_set_hds()
5233 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, u16 vnic_id, in bnxt_hwrm_vnic_ctx_free_one() argument
5242 cpu_to_le16(bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx[ctx_idx]); in bnxt_hwrm_vnic_ctx_free_one()
5245 bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx[ctx_idx] = INVALID_HW_RING_ID; in bnxt_hwrm_vnic_ctx_free_one()
5263 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, u16 vnic_id, u16 ctx_idx) in bnxt_hwrm_vnic_ctx_alloc() argument
5276 bp->vnic_info[vnic_id].fw_rss_cos_lb_ctx[ctx_idx] = in bnxt_hwrm_vnic_ctx_alloc()
5290 int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_cfg() argument
5292 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_cfg()
5341 ring = vnic_id - 1; in bnxt_hwrm_vnic_cfg()
5342 else if ((vnic_id == 1) && BNXT_CHIP_TYPE_NITRO_A0(bp)) in bnxt_hwrm_vnic_cfg()
5351 req->vnic_id = cpu_to_le16(vnic->fw_vnic_id); in bnxt_hwrm_vnic_cfg()
5358 if (!vnic_id && bnxt_ulp_registered(bp->edev, BNXT_ROCE_ULP)) in bnxt_hwrm_vnic_cfg()
5364 static void bnxt_hwrm_vnic_free_one(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_free_one() argument
5366 if (bp->vnic_info[vnic_id].fw_vnic_id != INVALID_HW_RING_ID) { in bnxt_hwrm_vnic_free_one()
5372 req->vnic_id = in bnxt_hwrm_vnic_free_one()
5373 cpu_to_le32(bp->vnic_info[vnic_id].fw_vnic_id); in bnxt_hwrm_vnic_free_one()
5376 bp->vnic_info[vnic_id].fw_vnic_id = INVALID_HW_RING_ID; in bnxt_hwrm_vnic_free_one()
5388 static int bnxt_hwrm_vnic_alloc(struct bnxt *bp, u16 vnic_id, in bnxt_hwrm_vnic_alloc() argument
5393 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in bnxt_hwrm_vnic_alloc()
5419 if (vnic_id == 0) in bnxt_hwrm_vnic_alloc()
5425 vnic->fw_vnic_id = le32_to_cpu(resp->vnic_id); in bnxt_hwrm_vnic_alloc()
8394 static int __bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id) in __bnxt_setup_vnic() argument
8396 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_id]; in __bnxt_setup_vnic()
8403 rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic_id, 0); in __bnxt_setup_vnic()
8406 vnic_id, rc); in __bnxt_setup_vnic()
8412 rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic_id, 1); in __bnxt_setup_vnic()
8415 vnic_id, rc); in __bnxt_setup_vnic()
8423 rc = bnxt_hwrm_vnic_cfg(bp, vnic_id); in __bnxt_setup_vnic()
8426 vnic_id, rc); in __bnxt_setup_vnic()
8431 rc = bnxt_hwrm_vnic_set_rss(bp, vnic_id, true); in __bnxt_setup_vnic()
8434 vnic_id, rc); in __bnxt_setup_vnic()
8439 rc = bnxt_hwrm_vnic_set_hds(bp, vnic_id); in __bnxt_setup_vnic()
8442 vnic_id, rc); in __bnxt_setup_vnic()
8450 static int __bnxt_setup_vnic_p5(struct bnxt *bp, u16 vnic_id) in __bnxt_setup_vnic_p5() argument
8456 rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic_id, i); in __bnxt_setup_vnic_p5()
8459 vnic_id, i, rc); in __bnxt_setup_vnic_p5()
8467 rc = bnxt_hwrm_vnic_set_rss_p5(bp, vnic_id, true); in __bnxt_setup_vnic_p5()
8470 vnic_id, rc); in __bnxt_setup_vnic_p5()
8473 rc = bnxt_hwrm_vnic_cfg(bp, vnic_id); in __bnxt_setup_vnic_p5()
8476 vnic_id, rc); in __bnxt_setup_vnic_p5()
8480 rc = bnxt_hwrm_vnic_set_hds(bp, vnic_id); in __bnxt_setup_vnic_p5()
8483 vnic_id, rc); in __bnxt_setup_vnic_p5()
8489 static int bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id) in bnxt_setup_vnic() argument
8492 return __bnxt_setup_vnic_p5(bp, vnic_id); in bnxt_setup_vnic()
8494 return __bnxt_setup_vnic(bp, vnic_id); in bnxt_setup_vnic()
8507 u16 vnic_id = i + 1; in bnxt_alloc_rfs_vnics() local
8510 if (vnic_id >= bp->nr_vnics) in bnxt_alloc_rfs_vnics()
8513 vnic = &bp->vnic_info[vnic_id]; in bnxt_alloc_rfs_vnics()
8517 rc = bnxt_hwrm_vnic_alloc(bp, vnic_id, ring_id, 1); in bnxt_alloc_rfs_vnics()
8520 vnic_id, rc); in bnxt_alloc_rfs_vnics()
8523 rc = bnxt_setup_vnic(bp, vnic_id); in bnxt_alloc_rfs_vnics()