]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ebpf: reduce counter size to allow netronome offload
authorEric Leblond <eric@regit.org>
Sun, 7 Oct 2018 18:07:56 +0000 (20:07 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2019 05:07:01 +0000 (07:07 +0200)
ebpf/bypass_filter.c
ebpf/xdp_filter.c
src/util-ebpf.h

index 48604ebe280009f865f2402f94f1f04f6cdd2e6f..6d5206ecd558bc113ddd27abbe18dd7c8a56db74 100644 (file)
@@ -52,8 +52,8 @@ struct flowv6_keys {
 };
 
 struct pair {
-    __u64 packets;
-    __u64 bytes;
+    __u32 packets;
+    __u32 bytes;
     __u32 hash;
 };
 
index b20d90e62208bf0926de73a08367ec3e31f52049..597ef4883bdfeeb37d35b480aa413ffa04623512 100644 (file)
@@ -72,8 +72,8 @@ struct flowv6_keys {
 };
 
 struct pair {
-    __u64 packets;
-    __u64 bytes;
+    __u32 packets;
+    __u32 bytes;
     __u32 hash;
 };
 
index 91398ed6bbec5480afbe26586c9ed7a978416f03..c613f9bf3ac0592ab8bd76c5e29fd5338d9d90b9 100644 (file)
@@ -56,8 +56,8 @@ struct flowv6_keys {
 };
 
 struct pair {
-    uint64_t packets;
-    uint64_t bytes;
+    uint32_t packets;
+    uint32_t bytes;
     uint32_t hash;
 };