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

Function rte_eth_dev_internal_reset

dpdk/lib/ethdev/ethdev_driver.c:403–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void
404rte_eth_dev_internal_reset(struct rte_eth_dev *dev)
405{
406 if (dev->data->dev_started) {
407 RTE_ETHDEV_LOG(ERR, "Port %u must be stopped to allow reset\n",
408 dev->data->port_id);
409 return;
410 }
411
412 eth_dev_rx_queue_config(dev, 0);
413 eth_dev_tx_queue_config(dev, 0);
414
415 memset(&dev->data->dev_conf, 0, sizeof(dev->data->dev_conf));
416}
417
418static int
419eth_dev_devargs_tokenise(struct rte_kvargs *arglist, const char *str_in)

Callers 1

member_removeFunction · 0.85

Calls 3

eth_dev_rx_queue_configFunction · 0.85
eth_dev_tx_queue_configFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected