| 2929 | } |
| 2930 | |
| 2931 | static int |
| 2932 | iavf_dev_uninit(struct rte_eth_dev *dev) |
| 2933 | { |
| 2934 | struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); |
| 2935 | |
| 2936 | if (rte_eal_process_type() != RTE_PROC_PRIMARY) |
| 2937 | return -EPERM; |
| 2938 | |
| 2939 | iavf_dev_close(dev); |
| 2940 | |
| 2941 | if (!vf->in_reset_recovery) |
| 2942 | iavf_dev_event_handler_fini(); |
| 2943 | |
| 2944 | return 0; |
| 2945 | } |
| 2946 | |
| 2947 | /* |
| 2948 | * Reset VF device only to re-initialize resources in PMD layer |
no test coverage detected