Changeset 8af0d01
- Timestamp:
- 07/04/14 14:07:34 (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:
- 50ce607
- Parents:
- 0c866b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_dpdk.c
r0c866b0 r8af0d01 1032 1032 } 1033 1033 1034 static inline size_t dpdk_get_max_rx_queues(uint8_t port_id) { 1035 struct rte_eth_dev_info dev_info; 1036 rte_eth_dev_info_get(0, &dev_info); 1037 return dev_info.max_rx_queues; 1038 } 1039 1034 1040 static int dpdk_pstart_input (libtrace_t *libtrace) { 1035 1041 char err[500]; … … 1047 1053 1048 1054 tot = MIN(libtrace->perpkt_thread_count, enabled_lcore_count); 1049 tot = MIN(tot, 8);1055 tot = MIN(tot, dpdk_get_max_rx_queues(FORMAT(libtrace)->port)); 1050 1056 fprintf(stderr, "Running pstart DPDK %d %d %d %d\n", tot, libtrace->perpkt_thread_count, enabled_lcore_count, rte_lcore_count()); 1051 1057
Note: See TracChangeset
for help on using the changeset viewer.