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

Function bnxt_alloc_cos_queues

dpdk/drivers/net/bnxt/bnxt_ethdev.c:332–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332static 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
353static int bnxt_alloc_flow_stats_info(struct bnxt *bp)
354{

Callers 1

bnxt_drv_initFunction · 0.85

Calls 1

rte_zmallocFunction · 0.85

Tested by

no test coverage detected