| 424 | } |
| 425 | |
| 426 | static void |
| 427 | bnxt_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 | |
| 447 | static struct bnxt_vnic_info* |
| 448 | bnxt_vnic_queue_create(struct bnxt *bp, int32_t vnic_id, uint16_t q_index) |
no test coverage detected