| 1845 | } |
| 1846 | |
| 1847 | static int |
| 1848 | eth_i40e_dev_uninit(struct rte_eth_dev *dev) |
| 1849 | { |
| 1850 | struct i40e_hw *hw; |
| 1851 | |
| 1852 | PMD_INIT_FUNC_TRACE(); |
| 1853 | |
| 1854 | if (rte_eal_process_type() != RTE_PROC_PRIMARY) |
| 1855 | return 0; |
| 1856 | |
| 1857 | hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 1858 | |
| 1859 | if (hw->adapter_closed == 0) |
| 1860 | i40e_dev_close(dev); |
| 1861 | |
| 1862 | return 0; |
| 1863 | } |
| 1864 | |
| 1865 | static int |
| 1866 | i40e_dev_configure(struct rte_eth_dev *dev) |
no test coverage detected