* Reset PF device. */
| 1602 | * Reset PF device. |
| 1603 | */ |
| 1604 | static int |
| 1605 | eth_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 | |
| 1628 | static int |
nothing calls this directly
no test coverage detected