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

Function bnxt_alloc_switch_domain

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

This should be called after we have queried trusted VF cap */

Source from the content-addressed store, hash-verified

5361
5362/* This should be called after we have queried trusted VF cap */
5363static 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
5381static int bnxt_init_resources(struct bnxt *bp, bool reconfig_dev)
5382{

Callers 1

bnxt_init_resourcesFunction · 0.85

Calls 1

Tested by

no test coverage detected