| 2382 | } |
| 2383 | |
| 2384 | int |
| 2385 | ff_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 | |
| 2401 | void |
| 2402 | ff_dpdk_run(loop_func_t loop, void *arg) { |
no test coverage detected