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

Function cmd_set_eth_peer_parsed

dpdk/app/test-pmd/cmdline.c:7375–7389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7373};
7374
7375static 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}
7390static cmdline_parse_token_string_t cmd_eth_peer_set =
7391 TOKEN_STRING_INITIALIZER(struct cmd_eth_peer_result, set, "set");
7392static cmdline_parse_token_string_t cmd_eth_peer =

Callers

nothing calls this directly

Calls 3

strcmpFunction · 0.85
set_fwd_eth_peerFunction · 0.85
fwd_config_setupFunction · 0.85

Tested by

no test coverage detected