From: Eric Leblond Date: Sun, 7 Oct 2018 18:07:56 +0000 (+0200) Subject: ebpf: reduce counter size to allow netronome offload X-Git-Tag: suricata-5.0.0-rc1~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a37a7c4a2102c40dec7c80091cd0f161b0f37e30;p=thirdparty%2Fsuricata.git ebpf: reduce counter size to allow netronome offload --- diff --git a/ebpf/bypass_filter.c b/ebpf/bypass_filter.c index 48604ebe28..6d5206ecd5 100644 --- a/ebpf/bypass_filter.c +++ b/ebpf/bypass_filter.c @@ -52,8 +52,8 @@ struct flowv6_keys { }; struct pair { - __u64 packets; - __u64 bytes; + __u32 packets; + __u32 bytes; __u32 hash; }; diff --git a/ebpf/xdp_filter.c b/ebpf/xdp_filter.c index b20d90e622..597ef4883b 100644 --- a/ebpf/xdp_filter.c +++ b/ebpf/xdp_filter.c @@ -72,8 +72,8 @@ struct flowv6_keys { }; struct pair { - __u64 packets; - __u64 bytes; + __u32 packets; + __u32 bytes; __u32 hash; }; diff --git a/src/util-ebpf.h b/src/util-ebpf.h index 91398ed6bb..c613f9bf3a 100644 --- a/src/util-ebpf.h +++ b/src/util-ebpf.h @@ -56,8 +56,8 @@ struct flowv6_keys { }; struct pair { - uint64_t packets; - uint64_t bytes; + uint32_t packets; + uint32_t bytes; uint32_t hash; };