!193 [sync] PR-189: reduce struct pbuf size
From: @openeuler-sync-bot Reviewed-by: @wu-changsheng Signed-off-by: @wu-changsheng
This commit is contained in:
commit
6aa471940c
25
0047-reduce-struct-pbuf-size.patch
Normal file
25
0047-reduce-struct-pbuf-size.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 5527e02b7ae7f27db8964ad55747326b98e33634 Mon Sep 17 00:00:00 2001
|
||||||
|
From: wu-changsheng <wuchangsheng2@huawei.com>
|
||||||
|
Date: Wed, 21 Dec 2022 22:47:04 +0800
|
||||||
|
Subject: [PATCH] reduce struct pbuf size
|
||||||
|
|
||||||
|
---
|
||||||
|
src/include/lwip/pbuf.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/include/lwip/pbuf.h b/src/include/lwip/pbuf.h
|
||||||
|
index 380ac8e..1124408 100644
|
||||||
|
--- a/src/include/lwip/pbuf.h
|
||||||
|
+++ b/src/include/lwip/pbuf.h
|
||||||
|
@@ -229,7 +229,7 @@ struct pbuf {
|
||||||
|
u64_t l3_len:9;
|
||||||
|
/* < L4 (TCP/UDP) Header Length. */
|
||||||
|
u64_t l4_len:8;
|
||||||
|
- u16_t header_off;
|
||||||
|
+ u8_t header_off;
|
||||||
|
u8_t rexmit;
|
||||||
|
u8_t in_write;
|
||||||
|
u8_t head;
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
|
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
|
||||||
Name: lwip
|
Name: lwip
|
||||||
Version: 2.1.3
|
Version: 2.1.3
|
||||||
Release: 36
|
Release: 37
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://savannah.nongnu.org/projects/lwip/
|
URL: http://savannah.nongnu.org/projects/lwip/
|
||||||
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
|
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
|
||||||
@ -58,6 +58,7 @@ Patch9042: 0043-add-prefetch.patch
|
|||||||
Patch9043: 0044-skip-unnecessary-tcp_route.patch
|
Patch9043: 0044-skip-unnecessary-tcp_route.patch
|
||||||
Patch9044: 0045-add-variable-in-struct-sock.patch
|
Patch9044: 0045-add-variable-in-struct-sock.patch
|
||||||
Patch9045: 0046-add-dataack-when-recv-too-many-acks-with-data.patch
|
Patch9045: 0046-add-dataack-when-recv-too-many-acks-with-data.patch
|
||||||
|
Patch9046: 0047-reduce-struct-pbuf-size.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
||||||
|
|
||||||
@ -120,6 +121,7 @@ find %{_builddir}/%{name}-%{version} -type f -exec dos2unix -q {} \;
|
|||||||
%patch9043 -p1
|
%patch9043 -p1
|
||||||
%patch9044 -p1
|
%patch9044 -p1
|
||||||
%patch9045 -p1
|
%patch9045 -p1
|
||||||
|
%patch9046 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{_builddir}/%{name}-%{version}/src
|
cd %{_builddir}/%{name}-%{version}/src
|
||||||
@ -135,6 +137,9 @@ cd %{_builddir}/%{name}-%{version}/src
|
|||||||
%{_libdir}/liblwip.a
|
%{_libdir}/liblwip.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 21 2022 wuchangsheng<wuchangsheng2@huawei.com> - 2.1.3-37
|
||||||
|
- reduce struct pbuf size
|
||||||
|
|
||||||
* Wed Dec 21 2022 kircher<majun65@huawei.com> - 2.1.3-36
|
* Wed Dec 21 2022 kircher<majun65@huawei.com> - 2.1.3-36
|
||||||
- do not update cwnd when send dataack
|
- do not update cwnd when send dataack
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user