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

Function ixgbe_pf_host_uninit

dpdk/drivers/net/ixgbe/ixgbe_pf.c:133–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void ixgbe_pf_host_uninit(struct rte_eth_dev *eth_dev)
134{
135 struct ixgbe_vf_info **vfinfo;
136 uint16_t vf_num;
137 int ret;
138
139 PMD_INIT_FUNC_TRACE();
140
141 RTE_ETH_DEV_SRIOV(eth_dev).active = 0;
142 RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool = 0;
143 RTE_ETH_DEV_SRIOV(eth_dev).def_vmdq_idx = 0;
144 RTE_ETH_DEV_SRIOV(eth_dev).def_pool_q_idx = 0;
145
146 vf_num = dev_num_vf(eth_dev);
147 if (vf_num == 0)
148 return;
149
150 vfinfo = IXGBE_DEV_PRIVATE_TO_P_VFDATA(eth_dev->data->dev_private);
151 if (*vfinfo == NULL)
152 return;
153
154 ret = rte_eth_switch_domain_free((*vfinfo)->switch_domain_id);
155 if (ret)
156 PMD_INIT_LOG(WARNING, "failed to free switch domain: %d", ret);
157
158 rte_free(*vfinfo);
159 *vfinfo = NULL;
160}
161
162static void
163ixgbe_add_tx_flow_control_drop_filter(struct rte_eth_dev *eth_dev)

Callers 2

eth_ixgbe_dev_initFunction · 0.85
ixgbe_dev_closeFunction · 0.85

Calls 3

rte_freeFunction · 0.85
dev_num_vfFunction · 0.70

Tested by

no test coverage detected