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

Function pmd_dev_close

dpdk/drivers/net/softnic/rte_eth_softnic.c:198–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static int
199pmd_dev_close(struct rte_eth_dev *dev)
200{
201 if (rte_eal_process_type() != RTE_PROC_PRIMARY)
202 return 0;
203
204 pmd_free(dev->data->dev_private);
205 dev->data->dev_private = NULL; /* already freed */
206 dev->data->mac_addrs = NULL; /* statically allocated */
207 return 0;
208}
209
210static int
211pmd_link_update(struct rte_eth_dev *dev __rte_unused,

Callers 1

pmd_removeFunction · 0.85

Calls 2

rte_eal_process_typeFunction · 0.85
pmd_freeFunction · 0.85

Tested by

no test coverage detected