* Reset PF device only to re-initialize resources in PMD layer */
| 2680 | * Reset PF device only to re-initialize resources in PMD layer |
| 2681 | */ |
| 2682 | static int |
| 2683 | i40e_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 | |
| 2705 | static int |
| 2706 | i40e_dev_promiscuous_enable(struct rte_eth_dev *dev) |
nothing calls this directly
no test coverage detected