| 330 | } |
| 331 | |
| 332 | static int bnxt_alloc_cos_queues(struct bnxt *bp) |
| 333 | { |
| 334 | bp->rx_cos_queue = |
| 335 | rte_zmalloc("bnxt_rx_cosq", |
| 336 | BNXT_COS_QUEUE_COUNT * |
| 337 | sizeof(struct bnxt_cos_queue_info), |
| 338 | 0); |
| 339 | if (bp->rx_cos_queue == NULL) |
| 340 | return -ENOMEM; |
| 341 | |
| 342 | bp->tx_cos_queue = |
| 343 | rte_zmalloc("bnxt_tx_cosq", |
| 344 | BNXT_COS_QUEUE_COUNT * |
| 345 | sizeof(struct bnxt_cos_queue_info), |
| 346 | 0); |
| 347 | if (bp->tx_cos_queue == NULL) |
| 348 | return -ENOMEM; |
| 349 | |
| 350 | return 0; |
| 351 | } |
| 352 | |
| 353 | static int bnxt_alloc_flow_stats_info(struct bnxt *bp) |
| 354 | { |
no test coverage detected