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

Function cmd_quit_parsed

dpdk/examples/ntb/ntb_fwd.c:133–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132}
133void
134cmd_quit_parsed(__rte_unused void *parsed_result,
135 struct cmdline *cl,
136 __rte_unused void *data)
137{
138 struct ntb_fwd_lcore_conf *conf;
139 uint32_t lcore_id;
140
141 /* Stop transmission first. */
142 RTE_LCORE_FOREACH_WORKER(lcore_id) {
143 conf = &fwd_lcore_conf[lcore_id];
144
145 if (!conf->nb_stream)
146 continue;
147
148 if (conf->stopped)
149 continue;
150
151 conf->stopped = 1;
152 }
153 printf("\nWaiting for lcores to finish...\n");
154 rte_eal_mp_wait_lcore();
155 in_test = 0;
156
157 /* Stop traffic and Close port. */
158 rte_rawdev_stop(dev_id);
159 rte_rawdev_close(dev_id);
160 if (eth_port_id < RTE_MAX_ETHPORTS && fwd_mode == IOFWD) {
161 rte_eth_dev_stop(eth_port_id);
162 rte_eth_dev_close(eth_port_id);
163 }
164
165 cmdline_quit(cl);
166}
167
168void
169cmd_send_parsed(void *parsed_result,

Callers

nothing calls this directly

Calls 7

rte_eal_mp_wait_lcoreFunction · 0.85
rte_rawdev_stopFunction · 0.85
rte_rawdev_closeFunction · 0.85
rte_eth_dev_stopFunction · 0.85
rte_eth_dev_closeFunction · 0.85
cmdline_quitFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected