This should be called after we have queried trusted VF cap */
| 5361 | |
| 5362 | /* This should be called after we have queried trusted VF cap */ |
| 5363 | static int bnxt_alloc_switch_domain(struct bnxt *bp) |
| 5364 | { |
| 5365 | int rc = 0; |
| 5366 | |
| 5367 | if (BNXT_PF(bp) || BNXT_VF_IS_TRUSTED(bp)) { |
| 5368 | rc = rte_eth_switch_domain_alloc(&bp->switch_domain_id); |
| 5369 | if (rc) |
| 5370 | PMD_DRV_LOG(ERR, |
| 5371 | "Failed to alloc switch domain: %d\n", rc); |
| 5372 | else |
| 5373 | PMD_DRV_LOG(INFO, |
| 5374 | "Switch domain allocated %d\n", |
| 5375 | bp->switch_domain_id); |
| 5376 | } |
| 5377 | |
| 5378 | return rc; |
| 5379 | } |
| 5380 | |
| 5381 | static int bnxt_init_resources(struct bnxt *bp, bool reconfig_dev) |
| 5382 | { |
no test coverage detected