| 3826 | } |
| 3827 | |
| 3828 | static int |
| 3829 | ice_dev_reset(struct rte_eth_dev *dev) |
| 3830 | { |
| 3831 | int ret; |
| 3832 | |
| 3833 | if (dev->data->sriov.active) |
| 3834 | return -ENOTSUP; |
| 3835 | |
| 3836 | ret = ice_dev_uninit(dev); |
| 3837 | if (ret) { |
| 3838 | PMD_INIT_LOG(ERR, "failed to uninit device, status = %d", ret); |
| 3839 | return -ENXIO; |
| 3840 | } |
| 3841 | |
| 3842 | ret = ice_dev_init(dev); |
| 3843 | if (ret) { |
| 3844 | PMD_INIT_LOG(ERR, "failed to init device, status = %d", ret); |
| 3845 | return -ENXIO; |
| 3846 | } |
| 3847 | |
| 3848 | return 0; |
| 3849 | } |
| 3850 | |
| 3851 | static int |
| 3852 | ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) |
nothing calls this directly
no test coverage detected