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

Function iavf_dev_uninit

dpdk/drivers/net/iavf/iavf_ethdev.c:2931–2945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2929}
2930
2931static int
2932iavf_dev_uninit(struct rte_eth_dev *dev)
2933{
2934 struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private);
2935
2936 if (rte_eal_process_type() != RTE_PROC_PRIMARY)
2937 return -EPERM;
2938
2939 iavf_dev_close(dev);
2940
2941 if (!vf->in_reset_recovery)
2942 iavf_dev_event_handler_fini();
2943
2944 return 0;
2945}
2946
2947/*
2948 * Reset VF device only to re-initialize resources in PMD layer

Callers 1

iavf_dev_resetFunction · 0.85

Calls 3

rte_eal_process_typeFunction · 0.85
iavf_dev_closeFunction · 0.85

Tested by

no test coverage detected