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

Function ena_dev_reset

dpdk/drivers/net/ena/ena_ethdev.c:886–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886static int
887ena_dev_reset(struct rte_eth_dev *dev)
888{
889 int rc = 0;
890
891 /* Cannot release memory in secondary process */
892 if (rte_eal_process_type() != RTE_PROC_PRIMARY) {
893 PMD_DRV_LOG(WARNING, "dev_reset not supported in secondary.\n");
894 return -EPERM;
895 }
896
897 ena_destroy_device(dev);
898 rc = eth_ena_dev_init(dev);
899 if (rc)
900 PMD_INIT_LOG(CRIT, "Cannot initialize device\n");
901
902 return rc;
903}
904
905static void ena_rx_queue_release_all(struct rte_eth_dev *dev)
906{

Callers

nothing calls this directly

Calls 3

rte_eal_process_typeFunction · 0.85
ena_destroy_deviceFunction · 0.85
eth_ena_dev_initFunction · 0.85

Tested by

no test coverage detected