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

Function bnxt_alloc_leds_info

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

Source from the content-addressed store, hash-verified

316}
317
318static int bnxt_alloc_leds_info(struct bnxt *bp)
319{
320 if (BNXT_VF(bp))
321 return 0;
322
323 bp->leds = rte_zmalloc("bnxt_leds",
324 BNXT_MAX_LED * sizeof(struct bnxt_led_info),
325 0);
326 if (bp->leds == NULL)
327 return -ENOMEM;
328
329 return 0;
330}
331
332static int bnxt_alloc_cos_queues(struct bnxt *bp)
333{

Callers 1

bnxt_drv_initFunction · 0.85

Calls 1

rte_zmallocFunction · 0.85

Tested by

no test coverage detected