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

Function fwd_config_setup

dpdk/app/test-pmd/config.c:5035–5071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5033}
5034
5035void
5036fwd_config_setup(void)
5037{
5038 struct rte_port *port;
5039 portid_t pt_id;
5040 unsigned int i;
5041
5042 cur_fwd_config.fwd_eng = cur_fwd_eng;
5043 if (strcmp(cur_fwd_eng->fwd_mode_name, "icmpecho") == 0) {
5044 icmp_echo_config_setup();
5045 return;
5046 }
5047
5048 if ((nb_rxq > 1) && (nb_txq > 1)){
5049 if (dcb_config) {
5050 for (i = 0; i < nb_fwd_ports; i++) {
5051 pt_id = fwd_ports_ids[i];
5052 port = &ports[pt_id];
5053 if (!port->dcb_flag) {
5054 fprintf(stderr,
5055 "In DCB mode, all forwarding ports must be configured in this mode.\n");
5056 return;
5057 }
5058 }
5059 if (nb_fwd_lcores == 1) {
5060 fprintf(stderr,
5061 "In DCB mode,the nb forwarding cores should be larger than 1.\n");
5062 return;
5063 }
5064
5065 dcb_fwd_config_setup();
5066 } else
5067 rss_fwd_config_setup();
5068 }
5069 else
5070 simple_fwd_config_setup();
5071}
5072
5073static const char *
5074mp_alloc_to_str(uint8_t mode)

Callers 8

init_configFunction · 0.85
start_packet_forwardingFunction · 0.85
cmd_config_rx_tx_parsedFunction · 0.85
cmd_config_dcb_parsedFunction · 0.85
cmd_set_list_parsedFunction · 0.85
cmd_set_mask_parsedFunction · 0.85
cmd_set_parsedFunction · 0.85
cmd_set_eth_peer_parsedFunction · 0.85

Calls 5

strcmpFunction · 0.85
icmp_echo_config_setupFunction · 0.85
dcb_fwd_config_setupFunction · 0.85
rss_fwd_config_setupFunction · 0.85
simple_fwd_config_setupFunction · 0.85

Tested by 2

init_configFunction · 0.68
start_packet_forwardingFunction · 0.68