util-ebpf: suppress call on loop init

pull/3221/head
Eric Leblond 8 years ago
parent 8c88087948
commit 0654c31397

@ -218,9 +218,6 @@ int EBPFForEachFlowV4Table(const char *name,
}
struct pair values_array[nr_cpus];
if (bpf_map_get_next_key(mapfd, &key, &next_key) != 0) {
return found;
}
while (bpf_map_get_next_key(mapfd, &key, &next_key) == 0) {
int iret = 1;
int pkts_cnt = 0;
@ -266,9 +263,6 @@ int EBPFForEachFlowV6Table(const char *name,
}
struct pair values_array[nr_cpus];
if (bpf_map_get_next_key(mapfd, &key, &next_key) != 0) {
return found;
}
while (bpf_map_get_next_key(mapfd, &key, &next_key) == 0) {
int iret = 1;
int pkts_cnt = 0;

Loading…
Cancel
Save