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

Function ixgbe_dev_reset

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:3142–3163  ·  view source on GitHub ↗

* Reset PF device. */

Source from the content-addressed store, hash-verified

3140 * Reset PF device.
3141 */
3142static int
3143ixgbe_dev_reset(struct rte_eth_dev *dev)
3144{
3145 int ret;
3146
3147 /* When a DPDK PMD PF begin to reset PF port, it should notify all
3148 * its VF to make them align with it. The detailed notification
3149 * mechanism is PMD specific. As to ixgbe PF, it is rather complex.
3150 * To avoid unexpected behavior in VF, currently reset of PF with
3151 * SR-IOV activation is not supported. It might be supported later.
3152 */
3153 if (dev->data->sriov.active)
3154 return -ENOTSUP;
3155
3156 ret = eth_ixgbe_dev_uninit(dev);
3157 if (ret)
3158 return ret;
3159
3160 ret = eth_ixgbe_dev_init(dev, NULL);
3161
3162 return ret;
3163}
3164
3165static void
3166ixgbe_read_stats_registers(struct ixgbe_hw *hw,

Callers

nothing calls this directly

Calls 2

eth_ixgbe_dev_uninitFunction · 0.85
eth_ixgbe_dev_initFunction · 0.85

Tested by

no test coverage detected