Lines Matching defs:ethdev
28 * ethdev ports in a single process.
134 struct rte_eth_dev *ethdev;
139 ethdev = eth_dev_allocated(name);
141 ethdev = NULL;
145 return ethdev;
294 struct rte_eth_dev *ethdev;
301 ethdev = rte_eth_dev_allocate(name);
302 if (!ethdev)
307 ethdev->data->dev_private = rte_zmalloc_socket(
312 if (ethdev->data->dev_private == NULL) {
313 ethdev->data->dev_private = rte_zmalloc(name,
316 if (ethdev->data->dev_private == NULL) {
323 "Private data for ethdev '%s' not allocated on local NUMA node %d",
328 ethdev = rte_eth_dev_attach_secondary(name);
329 if (!ethdev) {
331 "secondary process attach failed, ethdev doesn't exist");
336 ethdev->device = device;
339 retval = ethdev_bus_specific_init(ethdev, bus_init_params);
342 "ethdev bus specific initialisation failed");
347 retval = ethdev_init(ethdev, init_params);
349 RTE_ETHDEV_LOG_LINE(ERR, "ethdev initialisation failed");
353 rte_eth_dev_probing_finish(ethdev);
358 rte_eth_dev_release_port(ethdev);
363 rte_eth_dev_destroy(struct rte_eth_dev *ethdev,
368 ethdev = rte_eth_dev_allocated(ethdev->data->name);
369 if (!ethdev)
375 ret = ethdev_uninit(ethdev);
379 return rte_eth_dev_release_port(ethdev);