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

Function rte_pmd_mvneta_remove

dpdk/drivers/net/mvneta/mvneta_ethdev.c:975–988  ·  view source on GitHub ↗

* DPDK callback to remove virtual device. * * @param vdev * Pointer to the removed virtual device. * * @return * 0 on success, negative error value otherwise. */

Source from the content-addressed store, hash-verified

973 * 0 on success, negative error value otherwise.
974 */
975static int
976rte_pmd_mvneta_remove(struct rte_vdev_device *vdev)
977{
978 uint16_t port_id;
979 int ret = 0;
980
981 RTE_ETH_FOREACH_DEV(port_id) {
982 if (rte_eth_devices[port_id].device != &vdev->device)
983 continue;
984 ret |= rte_eth_dev_close(port_id);
985 }
986
987 return ret == 0 ? 0 : -EIO;
988}
989
990static struct rte_vdev_driver pmd_mvneta_drv = {
991 .probe = rte_pmd_mvneta_probe,

Callers 1

rte_pmd_mvneta_probeFunction · 0.85

Calls 1

rte_eth_dev_closeFunction · 0.85

Tested by

no test coverage detected