From c511088f63511e9bc792962fe6d905fa0d93791b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 2 Apr 2024 14:58:36 -0400 Subject: [PATCH] MT#55283 move stream_stats to kernel header Change-Id: I41fc5af5f868fa858f467adf5c367555f37ab2bf --- include/statistics.h | 8 -------- kernel-module/common_stats.h | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/include/statistics.h b/include/statistics.h index 2519d7a7c..8c8051707 100644 --- a/include/statistics.h +++ b/include/statistics.h @@ -3,14 +3,6 @@ #include "helpers.h" #include "bencode.h" - -struct packet_stream; -struct stream_stats { - atomic64 packets; - atomic64 bytes; - atomic64 errors; -}; - #include "control_ng.h" #include "graphite.h" diff --git a/kernel-module/common_stats.h b/kernel-module/common_stats.h index d4571de04..0e61c1493 100644 --- a/kernel-module/common_stats.h +++ b/kernel-module/common_stats.h @@ -39,5 +39,10 @@ struct interface_stats_block { struct interface_sampled_stats sampled; }; +struct stream_stats { + atomic64 packets; + atomic64 bytes; + atomic64 errors; +}; #endif