MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_vnic_queue_delete

Function bnxt_vnic_queue_delete

dpdk/drivers/net/bnxt/bnxt_vnic.c:426–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426static void
427bnxt_vnic_queue_delete(struct bnxt *bp, uint16_t vnic_idx)
428{
429 struct bnxt_vnic_info *vnic = &bp->vnic_info[vnic_idx];
430
431 if (bnxt_hwrm_vnic_free(bp, vnic))
432 PMD_DRV_LOG(ERR, "Failed to delete queue\n");
433
434 if (vnic->fw_grp_ids) {
435 rte_free(vnic->fw_grp_ids);
436 vnic->fw_grp_ids = NULL;
437 }
438
439 vnic->rx_queue_cnt = 0;
440 if (bp->nr_vnics)
441 bp->nr_vnics--;
442
443 /* reset the queue_bitmap */
444 memset(vnic->queue_bitmap, 0, sizeof(vnic->queue_bitmap));
445}
446
447static struct bnxt_vnic_info*
448bnxt_vnic_queue_create(struct bnxt *bp, int32_t vnic_id, uint16_t q_index)

Callers 2

bnxt_vnic_queue_createFunction · 0.85

Calls 3

bnxt_hwrm_vnic_freeFunction · 0.85
rte_freeFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected