From e08c46a3582bb1d772f63693b5f05a27ae297c1c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 4 Apr 2024 14:37:18 -0400 Subject: [PATCH] MT#55283 split out counter_stats_fields.inc ... and move to kernel module. Keep the common fields at the beginning of the header in place for both user space and kernel space, and move the remaining (user only) fields into a separate header. The kernel module doesn't need to know about these extra fields. Change-Id: I9865349e948aacd09753a1b4610098a4d1fc823d --- include/counter_stats_fields.inc | 4 +--- kernel-module/common_counter_stats_fields.inc | 3 +++ kernel-module/kernel_counter_stats_fields.inc | 1 + kernel-module/other_counter_stats_fields.inc | 0 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 kernel-module/common_counter_stats_fields.inc create mode 100644 kernel-module/kernel_counter_stats_fields.inc create mode 100644 kernel-module/other_counter_stats_fields.inc diff --git a/include/counter_stats_fields.inc b/include/counter_stats_fields.inc index fd9197473..2c1a78a05 100644 --- a/include/counter_stats_fields.inc +++ b/include/counter_stats_fields.inc @@ -1,9 +1,7 @@ +#include "common_counter_stats_fields.inc" F(packets_user) F(bytes_user) F(errors_user) -F(packets_kernel) -F(bytes_kernel) -F(errors_kernel) FA(ng_commands, NGC_COUNT) F(timeout_sess) F(managed_sess) diff --git a/kernel-module/common_counter_stats_fields.inc b/kernel-module/common_counter_stats_fields.inc new file mode 100644 index 000000000..25a03d2f8 --- /dev/null +++ b/kernel-module/common_counter_stats_fields.inc @@ -0,0 +1,3 @@ +F(packets_kernel) +F(bytes_kernel) +F(errors_kernel) diff --git a/kernel-module/kernel_counter_stats_fields.inc b/kernel-module/kernel_counter_stats_fields.inc new file mode 100644 index 000000000..738a943c8 --- /dev/null +++ b/kernel-module/kernel_counter_stats_fields.inc @@ -0,0 +1 @@ +#include "common_counter_stats_fields.inc" diff --git a/kernel-module/other_counter_stats_fields.inc b/kernel-module/other_counter_stats_fields.inc new file mode 100644 index 000000000..e69de29bb