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

Function eth_igb_reset

dpdk/drivers/net/e1000/igb_ethdev.c:1604–1625  ·  view source on GitHub ↗

* Reset PF device. */

Source from the content-addressed store, hash-verified

1602 * Reset PF device.
1603 */
1604static int
1605eth_igb_reset(struct rte_eth_dev *dev)
1606{
1607 int ret;
1608
1609 /* When a DPDK PMD PF begin to reset PF port, it should notify all
1610 * its VF to make them align with it. The detailed notification
1611 * mechanism is PMD specific and is currently not implemented.
1612 * To avoid unexpected behavior in VF, currently reset of PF with
1613 * SR-IOV activation is not supported. It might be supported later.
1614 */
1615 if (dev->data->sriov.active)
1616 return -ENOTSUP;
1617
1618 ret = eth_igb_dev_uninit(dev);
1619 if (ret)
1620 return ret;
1621
1622 ret = eth_igb_dev_init(dev);
1623
1624 return ret;
1625}
1626
1627
1628static int

Callers

nothing calls this directly

Calls 2

eth_igb_dev_uninitFunction · 0.85
eth_igb_dev_initFunction · 0.85

Tested by

no test coverage detected