MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ice_dev_reset

Function ice_dev_reset

dpdk/drivers/net/ice/ice_ethdev.c:3828–3849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3826}
3827
3828static int
3829ice_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
3851static int
3852ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)

Callers

nothing calls this directly

Calls 2

ice_dev_uninitFunction · 0.85
ice_dev_initFunction · 0.85

Tested by

no test coverage detected