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

Function failsafe_dev_remove

dpdk/drivers/net/failsafe/failsafe_ether.c:386–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void
387failsafe_dev_remove(struct rte_eth_dev *dev)
388{
389 struct sub_device *sdev;
390 uint8_t i;
391
392 FOREACH_SUBDEV(sdev, i, dev) {
393 if (!sdev->remove)
394 continue;
395
396 /* Active devices must have finished their burst and
397 * their stats must be saved.
398 */
399 if (sdev->state >= DEV_ACTIVE &&
400 fs_rxtx_clean(sdev) == 0)
401 continue;
402 if (fs_lock(dev, 1) != 0)
403 return;
404 if (sdev->state >= DEV_ACTIVE)
405 fs_dev_stats_save(sdev);
406 fs_dev_remove(sdev);
407 fs_unlock(dev, 1);
408 }
409}
410
411static int
412failsafe_eth_dev_rx_queues_sync(struct rte_eth_dev *dev)

Callers 1

fs_hotplug_alarmFunction · 0.85

Calls 5

fs_rxtx_cleanFunction · 0.85
fs_lockFunction · 0.85
fs_dev_stats_saveFunction · 0.85
fs_dev_removeFunction · 0.85
fs_unlockFunction · 0.85

Tested by

no test coverage detected