* Reset PF device. */
| 3140 | * Reset PF device. |
| 3141 | */ |
| 3142 | static int |
| 3143 | ixgbe_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 | |
| 3165 | static void |
| 3166 | ixgbe_read_stats_registers(struct ixgbe_hw *hw, |
nothing calls this directly
no test coverage detected