]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-ebpf: log bypassed flow maps count
authorEric Leblond <eric@regit.org>
Tue, 11 Jun 2019 21:38:25 +0000 (23:38 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2019 05:07:02 +0000 (07:07 +0200)
src/util-ebpf.c

index e4d4e45d644577152553b4a99380573a94ce8f3b..4ea5a034b365004ddcb41207fc170003b98fab55 100644 (file)
@@ -754,6 +754,7 @@ static int EBPFForEachFlowV4Table(ThreadVars *th_v, LiveDevice *dev, const char
     SC_ATOMIC_ADD(dev->bypassed, flowstats->packets);
 
     LiveDevSetBypassStats(dev, hash_cnt, AF_INET);
+    SCLogInfo("IPv4 bypassed flow table size: %" PRIu64, hash_cnt);
 
     return found;
 }
@@ -870,6 +871,7 @@ static int EBPFForEachFlowV6Table(ThreadVars *th_v,
     SC_ATOMIC_ADD(dev->bypassed, flowstats->packets);
 
     LiveDevSetBypassStats(dev, hash_cnt, AF_INET6);
+    SCLogInfo("IPv6 bypassed flow table size: %" PRIu64, hash_cnt);
     return found;
 }