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

Function ethdev_stop

dpdk/app/graph/ethdev.c:148–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void
149ethdev_stop(void)
150{
151 uint16_t portid;
152 int rc;
153
154 RTE_ETH_FOREACH_DEV(portid) {
155 if ((enabled_port_mask & (1 << portid)) == 0)
156 continue;
157 printf("Closing port %d...", portid);
158 rc = rte_eth_dev_stop(portid);
159 if (rc != 0)
160 printf("Failed to stop port %u: %s\n",
161 portid, rte_strerror(-rc));
162 rte_eth_dev_close(portid);
163 printf(" Done\n");
164 }
165
166 ethdev_list_clean();
167 route_ip4_list_clean();
168 route_ip6_list_clean();
169 neigh4_list_clean();
170 neigh6_list_clean();
171 printf("Bye...\n");
172}
173
174void
175ethdev_start(void)

Callers 1

mainFunction · 0.85

Calls 9

rte_eth_dev_stopFunction · 0.85
rte_strerrorFunction · 0.85
rte_eth_dev_closeFunction · 0.85
ethdev_list_cleanFunction · 0.85
route_ip4_list_cleanFunction · 0.85
route_ip6_list_cleanFunction · 0.85
neigh4_list_cleanFunction · 0.85
neigh6_list_cleanFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected