* Reset PF device. */
| 2134 | * Reset PF device. |
| 2135 | */ |
| 2136 | static int |
| 2137 | txgbe_dev_reset(struct rte_eth_dev *dev) |
| 2138 | { |
| 2139 | int ret; |
| 2140 | |
| 2141 | /* When a DPDK PMD PF begin to reset PF port, it should notify all |
| 2142 | * its VF to make them align with it. The detailed notification |
| 2143 | * mechanism is PMD specific. As to txgbe PF, it is rather complex. |
| 2144 | * To avoid unexpected behavior in VF, currently reset of PF with |
| 2145 | * SR-IOV activation is not supported. It might be supported later. |
| 2146 | */ |
| 2147 | if (dev->data->sriov.active) |
| 2148 | return -ENOTSUP; |
| 2149 | |
| 2150 | ret = eth_txgbe_dev_uninit(dev); |
| 2151 | if (ret) |
| 2152 | return ret; |
| 2153 | |
| 2154 | ret = eth_txgbe_dev_init(dev, NULL); |
| 2155 | |
| 2156 | return ret; |
| 2157 | } |
| 2158 | |
| 2159 | #define UPDATE_QP_COUNTER_32bit(reg, last_counter, counter) \ |
| 2160 | { \ |
nothing calls this directly
no test coverage detected