* Reset PF device. */
| 1307 | * Reset PF device. |
| 1308 | */ |
| 1309 | static int |
| 1310 | ngbe_dev_reset(struct rte_eth_dev *dev) |
| 1311 | { |
| 1312 | int ret; |
| 1313 | |
| 1314 | /* When a DPDK PMD PF begin to reset PF port, it should notify all |
| 1315 | * its VF to make them align with it. The detailed notification |
| 1316 | * mechanism is PMD specific. As to ngbe PF, it is rather complex. |
| 1317 | * To avoid unexpected behavior in VF, currently reset of PF with |
| 1318 | * SR-IOV activation is not supported. It might be supported later. |
| 1319 | */ |
| 1320 | if (dev->data->sriov.active) |
| 1321 | return -ENOTSUP; |
| 1322 | |
| 1323 | ret = eth_ngbe_dev_uninit(dev); |
| 1324 | if (ret != 0) |
| 1325 | return ret; |
| 1326 | |
| 1327 | ret = eth_ngbe_dev_init(dev, NULL); |
| 1328 | |
| 1329 | return ret; |
| 1330 | } |
| 1331 | |
| 1332 | #define UPDATE_QP_COUNTER_32bit(reg, last_counter, counter) \ |
| 1333 | { \ |
nothing calls this directly
no test coverage detected