!169 [sync] PR-165: add variable in struct sock

From: @openeuler-sync-bot 
Reviewed-by: @wu-changsheng 
Signed-off-by: @wu-changsheng
This commit is contained in:
openeuler-ci-bot 2022-12-20 07:33:33 +00:00 committed by Gitee
commit f3b68ea7de
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 1ede4a00c1eca575314af02374846cb086798c08 Mon Sep 17 00:00:00 2001
From: wu-changsheng <wuchangsheng2@huawei.com>
Date: Tue, 20 Dec 2022 14:37:21 +0800
Subject: [PATCH] add variable in struct sock
---
src/include/lwipsock.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
index ec4d78c..8924728 100644
--- a/src/include/lwipsock.h
+++ b/src/include/lwipsock.h
@@ -105,8 +105,7 @@ struct lwip_sock {
char pad1 __rte_cache_aligned;
/* app and stack thread all use */
uint32_t in_send; /* avoid sock too much send rpc msg*/
- pthread_spinlock_t sock_lock;
-
+ bool read_wait;
char pad2 __rte_cache_aligned;
/* stack thread all use */
struct list_node recv_list;
--
2.23.0

View File

@ -4,7 +4,7 @@
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
Name: lwip
Version: 2.1.3
Release: 32
Release: 33
License: BSD
URL: http://savannah.nongnu.org/projects/lwip/
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
@ -56,6 +56,7 @@ Patch9040: 0041-optimite-pcb-list-limit-send-size-and-ack-now.patch
Patch9041: 0042-expand-recv-win.patch
Patch9042: 0043-add-prefetch.patch
Patch9043: 0044-skip-unnecessary-tcp_route.patch
Patch9044: 0045-add-variable-in-struct-sock.patch
BuildRequires: gcc-c++ dos2unix dpdk-devel
@ -116,6 +117,7 @@ find %{_builddir}/%{name}-%{version} -type f -exec dos2unix -q {} \;
%patch9041 -p1
%patch9042 -p1
%patch9043 -p1
%patch9044 -p1
%build
cd %{_builddir}/%{name}-%{version}/src
@ -131,6 +133,9 @@ cd %{_builddir}/%{name}-%{version}/src
%{_libdir}/liblwip.a
%changelog
* Tue Dec 20 2022 wuchangsheng<wuchangsheng2@huawei.com> - 2.1.3-33
- add variable in struct sock
* Mon Dec 19 2022 kircher<majun65@huawei.com> - 2.1.3-32
- skip unnecessary tcp_route