change STAT_COUNTER from u16 to u64
(cherry picked from commit fb6adaf65970e0619f227df508f7698b8fcad9ee)
This commit is contained in:
parent
1f041ad870
commit
9b32134abc
28
0135-change-STAT_COUNTER-from-u16-to-u64.patch
Normal file
28
0135-change-STAT_COUNTER-from-u16-to-u64.patch
Normal file
@ -0,0 +1,28 @@
|
||||
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
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
|
||||
Name: lwip
|
||||
Version: 2.2.0
|
||||
Release: 27
|
||||
Release: 28
|
||||
License: BSD
|
||||
URL: http://savannah.nongnu.org/projects/lwip/
|
||||
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
|
||||
@ -146,6 +146,7 @@ Patch9130: 0131-add-MCAST_BLOCK_SOURCE-to-setsockopt-for-igmpv3.patch
|
||||
Patch9131: 0132-mod-udp-loop-mem-leak.patch
|
||||
Patch9132: 0133-allow-membership-to-register-multiple-times.patch
|
||||
Patch9133: 0134-mod-checksum-of-ip_hdr-and-udp_hdr.patch
|
||||
Patch9134: 0135-change-STAT_COUNTER-from-u16-to-u64.patch
|
||||
|
||||
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
||||
|
||||
@ -175,6 +176,9 @@ cd %{_builddir}/%{name}-%{version}/src
|
||||
%{_libdir}/liblwip.a
|
||||
|
||||
%changelog
|
||||
* Tue May 21 2024 ningjin <ningjin@kylinos.cn> - 2.2.0-28
|
||||
- change change STAT_COUNTER from u16 to u64
|
||||
|
||||
* Thu May 09 2024 hankangkang <hankangkang5@huawei.com> - 2.2.0-27
|
||||
- mod checksum of ip_hdr and udp_hdr
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user