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

Function rxtx_config_display

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

Source from the content-addressed store, hash-verified

4320 printf("\n");
4321}
4322void
4323rxtx_config_display(void)
4324{
4325 portid_t pid;
4326 queueid_t qid;
4327
4328 printf(" %s%s%s packet forwarding%s packets/burst=%d\n",
4329 cur_fwd_eng->fwd_mode_name,
4330 cur_fwd_eng->status ? "-" : "",
4331 cur_fwd_eng->status ? cur_fwd_eng->status : "",
4332 retry_enabled == 0 ? "" : " with retry",
4333 nb_pkt_per_burst);
4334
4335 if (cur_fwd_eng == &tx_only_engine || cur_fwd_eng == &flow_gen_engine)
4336 printf(" packet len=%u - nb packet segments=%d\n",
4337 (unsigned)tx_pkt_length, (int) tx_pkt_nb_segs);
4338
4339 printf(" nb forwarding cores=%d - nb forwarding ports=%d\n",
4340 nb_fwd_lcores, nb_fwd_ports);
4341
4342 RTE_ETH_FOREACH_DEV(pid) {
4343 struct rte_eth_rxconf *rx_conf = &ports[pid].rxq[0].conf;
4344 struct rte_eth_txconf *tx_conf = &ports[pid].txq[0].conf;
4345 uint16_t *nb_rx_desc = &ports[pid].nb_rx_desc[0];
4346 uint16_t *nb_tx_desc = &ports[pid].nb_tx_desc[0];
4347 struct rte_eth_rxq_info rx_qinfo;
4348 struct rte_eth_txq_info tx_qinfo;
4349 uint16_t rx_free_thresh_tmp;
4350 uint16_t tx_free_thresh_tmp;
4351 uint16_t tx_rs_thresh_tmp;
4352 uint16_t nb_rx_desc_tmp;
4353 uint16_t nb_tx_desc_tmp;
4354 uint64_t offloads_tmp;
4355 uint8_t pthresh_tmp;
4356 uint8_t hthresh_tmp;
4357 uint8_t wthresh_tmp;
4358 int32_t rc;
4359
4360 /* per port config */
4361 printf(" port %d: RX queue number: %d Tx queue number: %d\n",
4362 (unsigned int)pid, nb_rxq, nb_txq);
4363
4364 printf(" Rx offloads=0x%"PRIx64" Tx offloads=0x%"PRIx64"\n",
4365 ports[pid].dev_conf.rxmode.offloads,
4366 ports[pid].dev_conf.txmode.offloads);
4367
4368 /* per rx queue config only for first queue to be less verbose */
4369 for (qid = 0; qid < 1; qid++) {
4370 rc = rte_eth_rx_queue_info_get(pid, qid, &rx_qinfo);
4371 if (rc) {
4372 nb_rx_desc_tmp = nb_rx_desc[qid];
4373 rx_free_thresh_tmp =
4374 rx_conf[qid].rx_free_thresh;
4375 pthresh_tmp = rx_conf[qid].rx_thresh.pthresh;
4376 hthresh_tmp = rx_conf[qid].rx_thresh.hthresh;
4377 wthresh_tmp = rx_conf[qid].rx_thresh.wthresh;
4378 offloads_tmp = rx_conf[qid].offloads;
4379 } else {

Callers 2

start_packet_forwardingFunction · 0.85
cmd_showcfg_parsedFunction · 0.85

Calls 3

printfFunction · 0.50

Tested by 1

start_packet_forwardingFunction · 0.68