| 884 | } |
| 885 | |
| 886 | static int |
| 887 | ena_dev_reset(struct rte_eth_dev *dev) |
| 888 | { |
| 889 | int rc = 0; |
| 890 | |
| 891 | /* Cannot release memory in secondary process */ |
| 892 | if (rte_eal_process_type() != RTE_PROC_PRIMARY) { |
| 893 | PMD_DRV_LOG(WARNING, "dev_reset not supported in secondary.\n"); |
| 894 | return -EPERM; |
| 895 | } |
| 896 | |
| 897 | ena_destroy_device(dev); |
| 898 | rc = eth_ena_dev_init(dev); |
| 899 | if (rc) |
| 900 | PMD_INIT_LOG(CRIT, "Cannot initialize device\n"); |
| 901 | |
| 902 | return rc; |
| 903 | } |
| 904 | |
| 905 | static void ena_rx_queue_release_all(struct rte_eth_dev *dev) |
| 906 | { |
nothing calls this directly
no test coverage detected