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

Function ff_dpdk_if_up

lib/ff_dpdk_if.c:2384–2399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2382}
2383
2384int
2385ff_dpdk_if_up(void) {
2386 int i;
2387 struct lcore_conf *qconf = &lcore_conf;
2388 for (i = 0; i < qconf->nb_tx_port; i++) {
2389 uint16_t port_id = qconf->tx_port_id[i];
2390
2391 struct ff_port_cfg *pconf = &qconf->port_cfgs[port_id];
2392 veth_ctx[port_id] = ff_veth_attach(pconf);
2393 if (veth_ctx[port_id] == NULL) {
2394 rte_exit(EXIT_FAILURE, "ff_veth_attach failed");
2395 }
2396 }
2397
2398 return 0;
2399}
2400
2401void
2402ff_dpdk_run(loop_func_t loop, void *arg) {

Callers 1

ff_initFunction · 0.85

Calls 2

ff_veth_attachFunction · 0.85
rte_exitFunction · 0.85

Tested by

no test coverage detected