From: Eric Leblond Date: Sun, 12 Nov 2017 14:53:39 +0000 (+0100) Subject: util-ebpf: suppress call on loop init X-Git-Tag: suricata-4.1.0-beta1~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0654c313975c184c013650e5565b81d333660c67;p=thirdparty%2Fsuricata.git util-ebpf: suppress call on loop init --- diff --git a/src/util-ebpf.c b/src/util-ebpf.c index 0a148e72dc..352f169cdd 100644 --- a/src/util-ebpf.c +++ b/src/util-ebpf.c @@ -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;