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

Function eth_dev_close

dpdk/drivers/net/null/rte_eth_null.c:499–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499static int
500eth_dev_close(struct rte_eth_dev *dev)
501{
502 PMD_LOG(INFO, "Closing null ethdev on NUMA socket %u",
503 rte_socket_id());
504
505 if (rte_eal_process_type() != RTE_PROC_PRIMARY)
506 return 0;
507
508 /* mac_addrs must not be freed alone because part of dev_private */
509 dev->data->mac_addrs = NULL;
510
511 return 0;
512}
513
514static const struct eth_dev_ops ops = {
515 .dev_close = eth_dev_close,

Callers 1

rte_pmd_null_removeFunction · 0.70

Calls 2

rte_socket_idFunction · 0.85
rte_eal_process_typeFunction · 0.85

Tested by

no test coverage detected