Changeset 694823f
- Timestamp:
- 02/19/15 13:09:30 (6 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:
- 92020b8
- Parents:
- e4f27d1
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_dpdk.c
r5ab626a r694823f 1367 1367 fprintf(stderr, "Link status is %d %d %d\n", (int) link_info.link_status, 1368 1368 (int) link_info.link_duplex, (int) link_info.link_speed); 1369 struct rte_eth_rss_reta reta_conf = {0};1370 reta_conf.mask_lo = ~reta_conf.mask_lo;1371 reta_conf.mask_hi = ~reta_conf.mask_hi;1372 int qew = rte_eth_dev_rss_reta_query(format_data->port, &reta_conf);1373 fprintf(stderr, "err=%d", qew);1374 for (i = 0; i < ETH_RSS_RETA_NUM_ENTRIES; i++) {1375 fprintf(stderr, "[%d] = %d\n", i, (int)reta_conf.reta[i]);1376 }1377 1378 1369 #endif 1379 1370 -
lib/trace.c
r5ab626a r694823f 2046 2046 assert(stat->magic == LIBTRACE_STAT_MAGIC && "Please use" 2047 2047 "trace_create_statistics() to allocate statistics"); 2048 stat->reserved1 = 0; 2049 stat->reserved2 = 0; 2050 #define X(x) stat->x ##_valid = 0; 2051 LIBTRACE_STAT_FIELDS; 2052 #undef X 2048 2049 /* If the trace has paused or finished get the cached results */ 2053 2050 if (trace->state == STATE_PAUSED || 2054 2051 trace->state == STATE_FINSHED || … … 2057 2054 *stat = *trace->stats; 2058 2055 return stat; 2059 } else if (trace->format->get_statistics) { 2056 } 2057 2058 stat->reserved1 = 0; 2059 stat->reserved2 = 0; 2060 #define X(x) stat->x ##_valid = 0; 2061 LIBTRACE_STAT_FIELDS; 2062 #undef X 2063 if (trace->format->get_statistics) { 2060 2064 trace->format->get_statistics(trace, stat); 2061 2065 ret = trace_get_accepted_packets(trace);
Note: See TracChangeset
for help on using the changeset viewer.