| 497 | } |
| 498 | |
| 499 | static int |
| 500 | eth_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 | |
| 514 | static const struct eth_dev_ops ops = { |
| 515 | .dev_close = eth_dev_close, |
no test coverage detected