lwip/0135-change-STAT_COUNTER-from-u16-to-u64.patch
2024-06-14 17:32:41 +08:00

29 lines
727 B
Diff

From 2d03a11cfbbe8885339fda776f45ad3d26829d9f Mon Sep 17 00:00:00 2001
From: ningjin <ningjin@kylinos.cn>
Date: Mon, 20 May 2024 17:33:12 +0800
Subject: [PATCH] change STAT_COUNTER from u16 to u64
---
src/include/lwip/stats.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/include/lwip/stats.h b/src/include/lwip/stats.h
index f99f6e5..6798f48 100644
--- a/src/include/lwip/stats.h
+++ b/src/include/lwip/stats.h
@@ -52,7 +52,10 @@ extern "C" {
#define LWIP_STATS_LARGE 0
#endif
-#if LWIP_STATS_LARGE
+#if GAZELLE_ENABLE
+#define STAT_COUNTER u64_t
+#define STAT_COUNTER_F U64_F
+#elif LWIP_STATS_LARGE
#define STAT_COUNTER u32_t
#define STAT_COUNTER_F U32_F
#else
--
2.27.0