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

Function graph_pcap_exit

dpdk/lib/graph/graph_pcap.c:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void
41graph_pcap_exit(struct rte_graph *graph)
42{
43 if (rte_eal_process_type() == RTE_PROC_PRIMARY)
44 rte_mempool_free(pkt_mp);
45
46 if (pcapng_fd) {
47 rte_pcapng_close(pcapng_fd);
48 pcapng_fd = NULL;
49 }
50
51 /* Disable pcap. */
52 graph->pcap_enable = 0;
53 graph_pcap_enable(0);
54}
55
56static int
57graph_pcap_default_path_get(char **dir_path)

Callers 3

graph_fp_mem_destroyFunction · 0.85
graph_pcap_initFunction · 0.85

Calls 4

rte_eal_process_typeFunction · 0.85
rte_mempool_freeFunction · 0.85
rte_pcapng_closeFunction · 0.85
graph_pcap_enableFunction · 0.85

Tested by

no test coverage detected