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

Function rte_eth_switch_domain_free

dpdk/lib/ethdev/ethdev_driver.c:791–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791int
792rte_eth_switch_domain_free(uint16_t domain_id)
793{
794 if (domain_id == RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID ||
795 domain_id >= RTE_MAX_ETHPORTS)
796 return -EINVAL;
797
798 if (eth_dev_switch_domains[domain_id].state !=
799 RTE_ETH_SWITCH_DOMAIN_ALLOCATED)
800 return -EINVAL;
801
802 eth_dev_switch_domains[domain_id].state = RTE_ETH_SWITCH_DOMAIN_UNUSED;
803
804 return 0;
805}

Callers 12

ipn3ke_vswitch_removeFunction · 0.85
ngbe_pf_host_uninitFunction · 0.85
eth_enic_dev_uninitFunction · 0.85
nfp_flower_repr_createFunction · 0.85
nfp_uninit_app_fw_flowerFunction · 0.85
ixgbe_pf_host_uninitFunction · 0.85
mlx5_dev_closeFunction · 0.85
mlx5_dev_spawnFunction · 0.85
mlx5_dev_spawnFunction · 0.85
txgbe_pf_host_uninitFunction · 0.85
bnxt_free_switch_domainFunction · 0.85
i40e_dev_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected