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

Function i40e_dev_reset

dpdk/drivers/net/i40e/i40e_ethdev.c:2682–2703  ·  view source on GitHub ↗

* Reset PF device only to re-initialize resources in PMD layer */

Source from the content-addressed store, hash-verified

2680 * Reset PF device only to re-initialize resources in PMD layer
2681 */
2682static int
2683i40e_dev_reset(struct rte_eth_dev *dev)
2684{
2685 int ret;
2686
2687 /* When a DPDK PMD PF begin to reset PF port, it should notify all
2688 * its VF to make them align with it. The detailed notification
2689 * mechanism is PMD specific. As to i40e PF, it is rather complex.
2690 * To avoid unexpected behavior in VF, currently reset of PF with
2691 * SR-IOV activation is not supported. It might be supported later.
2692 */
2693 if (dev->data->sriov.active)
2694 return -ENOTSUP;
2695
2696 ret = eth_i40e_dev_uninit(dev);
2697 if (ret)
2698 return ret;
2699
2700 ret = eth_i40e_dev_init(dev, NULL);
2701
2702 return ret;
2703}
2704
2705static int
2706i40e_dev_promiscuous_enable(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 2

eth_i40e_dev_uninitFunction · 0.85
eth_i40e_dev_initFunction · 0.85

Tested by

no test coverage detected