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

Function ice_dcf_dev_reset

dpdk/drivers/net/ice/ice_dcf_ethdev.c:1843–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841}
1842
1843static int
1844ice_dcf_dev_reset(struct rte_eth_dev *dev)
1845{
1846 struct ice_dcf_adapter *ad = dev->data->dev_private;
1847 struct ice_dcf_hw *hw = &ad->real_hw;
1848 int ret;
1849
1850 if (ice_dcf_is_reset(dev)) {
1851 if (!ad->real_hw.resetting)
1852 ad->real_hw.resetting = true;
1853 PMD_DRV_LOG(ERR, "The DCF has been reset by PF");
1854
1855 /*
1856 * Simply reset hw to trigger an additional DCF enable/disable
1857 * cycle which help to workaround the issue that kernel driver
1858 * may not clean up resource during previous reset.
1859 */
1860 ice_dcf_reset_hw(dev, hw);
1861 }
1862
1863 ret = ice_dcf_dev_close(dev);
1864 if (ret)
1865 return ret;
1866
1867 ret = ice_dcf_dev_init(dev);
1868
1869 return ret;
1870}
1871
1872static const uint32_t *
1873ice_dcf_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused)

Callers

nothing calls this directly

Calls 4

ice_dcf_is_resetFunction · 0.85
ice_dcf_reset_hwFunction · 0.85
ice_dcf_dev_closeFunction · 0.85
ice_dcf_dev_initFunction · 0.85

Tested by

no test coverage detected