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

Function pkt_fwd_config_display

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

Source from the content-addressed store, hash-verified

5090}
5091
5092void
5093pkt_fwd_config_display(struct fwd_config *cfg)
5094{
5095 struct fwd_stream *fs;
5096 lcoreid_t lc_id;
5097 streamid_t sm_id;
5098
5099 printf("%s%s%s packet forwarding%s - ports=%d - cores=%d - streams=%d - "
5100 "NUMA support %s, MP allocation mode: %s\n",
5101 cfg->fwd_eng->fwd_mode_name,
5102 cfg->fwd_eng->status ? "-" : "",
5103 cfg->fwd_eng->status ? cfg->fwd_eng->status : "",
5104 retry_enabled == 0 ? "" : " with retry",
5105 cfg->nb_fwd_ports, cfg->nb_fwd_lcores, cfg->nb_fwd_streams,
5106 numa_support == 1 ? "enabled" : "disabled",
5107 mp_alloc_to_str(mp_alloc_type));
5108
5109 if (retry_enabled)
5110 printf("TX retry num: %u, delay between TX retries: %uus\n",
5111 burst_tx_retry_num, burst_tx_delay_time);
5112 for (lc_id = 0; lc_id < cfg->nb_fwd_lcores; lc_id++) {
5113 printf("Logical Core %u (socket %u) forwards packets on "
5114 "%d streams:",
5115 fwd_lcores_cpuids[lc_id],
5116 rte_lcore_to_socket_id(fwd_lcores_cpuids[lc_id]),
5117 fwd_lcores[lc_id]->stream_nb);
5118 for (sm_id = 0; sm_id < fwd_lcores[lc_id]->stream_nb; sm_id++) {
5119 fs = fwd_streams[fwd_lcores[lc_id]->stream_idx + sm_id];
5120 printf("\n RX P=%d/Q=%d (socket %u) -> TX "
5121 "P=%d/Q=%d (socket %u) ",
5122 fs->rx_port, fs->rx_queue,
5123 ports[fs->rx_port].socket_id,
5124 fs->tx_port, fs->tx_queue,
5125 ports[fs->tx_port].socket_id);
5126 print_ethaddr("peer=",
5127 &peer_eth_addrs[fs->peer_addr]);
5128 }
5129 printf("\n");
5130 }
5131 printf("\n");
5132}
5133
5134void
5135set_fwd_eth_peer(portid_t port_id, char *peer_addr)

Callers 2

start_packet_forwardingFunction · 0.85
cmd_showcfg_parsedFunction · 0.85

Calls 4

mp_alloc_to_strFunction · 0.85
rte_lcore_to_socket_idFunction · 0.85
print_ethaddrFunction · 0.70
printfFunction · 0.50

Tested by 1

start_packet_forwardingFunction · 0.68