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

Function ngbe_dev_reset

dpdk/drivers/net/ngbe/ngbe_ethdev.c:1309–1330  ·  view source on GitHub ↗

* Reset PF device. */

Source from the content-addressed store, hash-verified

1307 * Reset PF device.
1308 */
1309static int
1310ngbe_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 { \

Callers

nothing calls this directly

Calls 2

eth_ngbe_dev_uninitFunction · 0.85
eth_ngbe_dev_initFunction · 0.85

Tested by

no test coverage detected