Changeset 09dc6dc
- Timestamp:
- 07/01/14 19:18:16 (7 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 0c866b0
- Parents:
- 9b69b49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_dpdk.c
r9b69b49 r09dc6dc 351 351 if (global_config != NULL) { 352 352 int i; 353 printf("Intel DPDK setup\n"353 fprintf(stderr, "Intel DPDK setup\n" 354 354 "---Version : %"PRIu32"\n" 355 355 "---Magic : %"PRIu32"\n" … … 360 360 361 361 for (i = 0 ; i < nb_cpu; i++) { 362 printf(" ---Core %d : %s\n", i,362 fprintf(stderr, " ---Core %d : %s\n", i, 363 363 global_config->lcore_role[i] == ROLE_RTE ? "on" : "off"); 364 364 } … … 381 381 proc_type = "something worse than invalid!!"; 382 382 } 383 printf("---Process Type : %s\n", proc_type);383 fprintf(stderr, "---Process Type : %s\n", proc_type); 384 384 } 385 385 … … 744 744 */ 745 745 #if DEBUG 746 printf("Creating mempool named %s\n", format_data->mempool_name);746 fprintf(stderr, "Creating mempool named %s\n", format_data->mempool_name); 747 747 #endif 748 748 format_data->pktmbuf_pool = … … 825 825 rte_eth_link_get(format_data->port, &link_info); 826 826 #if DEBUG 827 printf("Link status is %d %d %d\n", (int) link_info.link_status,827 fprintf(stderr, "Link status is %d %d %d\n", (int) link_info.link_status, 828 828 (int) link_info.link_duplex, (int) link_info.link_speed); 829 829 #endif … … 949 949 ret = rte_eth_dev_start(format_data->port); 950 950 #if DEBUG 951 printf("Done start device\n");951 fprintf(stderr, "Done start device\n"); 952 952 #endif 953 953 if (ret < 0) { … … 979 979 rte_eth_link_get(format_data->port, &link_info); 980 980 #if DEBUG 981 printf("Link status is %d %d %d\n", (int) link_info.link_status,981 fprintf(stderr, "Link status is %d %d %d\n", (int) link_info.link_status, 982 982 (int) link_info.link_duplex, (int) link_info.link_speed); 983 983 #endif … … 1015 1015 tot = MIN(libtrace->perpkt_thread_count, enabled_lcore_count); 1016 1016 tot = MIN(tot, 8); 1017 printf("Running pstart DPDK %d %d %d %d\n", tot, libtrace->perpkt_thread_count, enabled_lcore_count, rte_lcore_count());1017 fprintf(stderr, "Running pstart DPDK %d %d %d %d\n", tot, libtrace->perpkt_thread_count, enabled_lcore_count, rte_lcore_count()); 1018 1018 1019 1019 if (dpdk_start_port_queues(libtrace, FORMAT(libtrace), err, sizeof(err), tot) != 0) { … … 1046 1046 if (FORMAT(libtrace)->paused == DPDK_RUNNING) { 1047 1047 #if DEBUG 1048 printf("Pausing port\n");1048 fprintf(stderr, "Pausing port\n"); 1049 1049 #endif 1050 1050 rte_eth_dev_stop(FORMAT(libtrace)->port); … … 1431 1431 get_thread_table_num(libtrace), pkts_burst, 1); 1432 1432 if (nb_rx > 0) { /* Got a packet - otherwise we keep spining */ 1433 printf("Doing P READ PACKET port=%d q=%d\n", (int) FORMAT(libtrace)->port, (int) get_thread_table_num(libtrace));1433 //fprintf(stderr, "Doing P READ PACKET port=%d q=%d\n", (int) FORMAT(libtrace)->port, (int) get_thread_table_num(libtrace)); 1434 1434 return dpdk_ready_pkt(libtrace, packet, pkts_burst[0]); 1435 1435 }
Note: See TracChangeset
for help on using the changeset viewer.