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

Function cli_ethdev

dpdk/app/graph/ethdev.c:655–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655static void
656cli_ethdev(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
657{
658 struct ethdev_cmd_tokens *res = parsed_result;
659 struct ethdev_config config;
660 int rc;
661
662 memset(&config, 0, sizeof(struct ethdev_config));
663 config.rx.n_queues = res->nb_rxq;
664 config.rx.queue_size = ETHDEV_RX_DESC_DEFAULT;
665 memcpy(config.rx.mempool_name, res->mempool, strlen(res->mempool));
666
667 config.tx.n_queues = res->nb_txq;
668 config.tx.queue_size = ETHDEV_TX_DESC_DEFAULT;
669
670 config.mtu = port_conf_default.rxmode.mtu;
671
672 rc = ethdev_process(res->dev, &config);
673 if (rc < 0)
674 printf(MSG_CMD_FAIL, res->cmd);
675}
676
677static void
678cli_ethdev_help(__rte_unused void *parsed_result, __rte_unused struct cmdline *cl,

Callers

nothing calls this directly

Calls 4

memsetFunction · 0.85
ethdev_processFunction · 0.85
memcpyFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected