From 9b32134abc20c638d8ed2e8a41c6b9ffe4c1b9be Mon Sep 17 00:00:00 2001 From: ningjin Date: Tue, 21 May 2024 10:12:52 +0800 Subject: [PATCH] change STAT_COUNTER from u16 to u64 (cherry picked from commit fb6adaf65970e0619f227df508f7698b8fcad9ee) --- ...-change-STAT_COUNTER-from-u16-to-u64.patch | 28 +++++++++++++++++++ lwip.spec | 6 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0135-change-STAT_COUNTER-from-u16-to-u64.patch diff --git a/0135-change-STAT_COUNTER-from-u16-to-u64.patch b/0135-change-STAT_COUNTER-from-u16-to-u64.patch new file mode 100644 index 0000000..8b4143e --- /dev/null +++ b/0135-change-STAT_COUNTER-from-u16-to-u64.patch @@ -0,0 +1,28 @@ +From 2d03a11cfbbe8885339fda776f45ad3d26829d9f Mon Sep 17 00:00:00 2001 +From: ningjin +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 + diff --git a/lwip.spec b/lwip.spec index 7d96ffd..305449f 100644 --- a/lwip.spec +++ b/lwip.spec @@ -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 - 2.2.0-28 +- change change STAT_COUNTER from u16 to u64 + * Thu May 09 2024 hankangkang - 2.2.0-27 - mod checksum of ip_hdr and udp_hdr