From a37a7c4a2102c40dec7c80091cd0f161b0f37e30 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 7 Oct 2018 20:07:56 +0200 Subject: [PATCH] ebpf: reduce counter size to allow netronome offload --- ebpf/bypass_filter.c | 4 ++-- ebpf/xdp_filter.c | 4 ++-- src/util-ebpf.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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; };