| 7373 | }; |
| 7374 | |
| 7375 | static void cmd_set_eth_peer_parsed(void *parsed_result, |
| 7376 | __rte_unused struct cmdline *cl, |
| 7377 | __rte_unused void *data) |
| 7378 | { |
| 7379 | struct cmd_eth_peer_result *res = parsed_result; |
| 7380 | |
| 7381 | if (test_done == 0) { |
| 7382 | fprintf(stderr, "Please stop forwarding first\n"); |
| 7383 | return; |
| 7384 | } |
| 7385 | if (!strcmp(res->eth_peer, "eth-peer")) { |
| 7386 | set_fwd_eth_peer(res->port_id, res->peer_addr); |
| 7387 | fwd_config_setup(); |
| 7388 | } |
| 7389 | } |
| 7390 | static cmdline_parse_token_string_t cmd_eth_peer_set = |
| 7391 | TOKEN_STRING_INITIALIZER(struct cmd_eth_peer_result, set, "set"); |
| 7392 | static cmdline_parse_token_string_t cmd_eth_peer = |
nothing calls this directly
no test coverage detected