| 316 | } |
| 317 | |
| 318 | static 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 | |
| 332 | static int bnxt_alloc_cos_queues(struct bnxt *bp) |
| 333 | { |
no test coverage detected