Changes in lib/format_dpdk.c [254c926:3621e1c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_dpdk.c
r254c926 r3621e1c 146 146 147 147 static bool dpdk_can_write(libtrace_packet_t *packet) { 148 libtrace_linktype_t ltype = trace_get_link_type(packet); 149 150 if (ltype == TRACE_TYPE_CONTENT_INVALID) { 151 return false; 152 } 153 if (ltype == TRACE_TYPE_NONDATA || ltype == TRACE_TYPE_ERF_META || 154 ltype == TRACE_TYPE_PCAPNG_META) { 155 return false; 156 } 148 157 return true; 149 158 } … … 259 268 if((file = fopen(path, "r")) != NULL) { 260 269 int numa_node = -1; 261 fscanf(file, "%d", &numa_node); 270 if (fscanf(file, "%d", &numa_node) != 1) { 271 numa_node = -1; 272 } 262 273 fclose(file); 263 274 return numa_node; … … 737 748 /* TODO filtering */ 738 749 case TRACE_OPTION_META_FREQ: 750 case TRACE_OPTION_DISCARD_META: 739 751 case TRACE_OPTION_EVENT_REALTIME: 740 752 case TRACE_OPTION_REPLAY_SPEEDUP: … … 879 891 if (port != format_data->port) { 880 892 fprintf(stderr, "Port does not match port in format data in dpdk_lsc_callback()\n"); 881 return -1; 893 #if RTE_VERSION >= RTE_VERSION_NUM(17, 8, 0, 1) 894 return -1; 895 #else 896 return; 897 #endif 882 898 } 883 899
Note: See TracChangeset
for help on using the changeset viewer.