From ac9655ce3aa7ff776a2cefd104d7a3e6c9c41a97 Mon Sep 17 00:00:00 2001 From: compile_success <980965867@qq.com> Date: Mon, 2 Dec 2024 14:41:24 +0000 Subject: [PATCH] add recv_wakeup for recv sem wait --- 0177-add-recv-wakeup.patch | 24 ++++++++++++++++++++++++ lwip.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 0177-add-recv-wakeup.patch diff --git a/0177-add-recv-wakeup.patch b/0177-add-recv-wakeup.patch new file mode 100644 index 0000000..75ff846 --- /dev/null +++ b/0177-add-recv-wakeup.patch @@ -0,0 +1,24 @@ +From 99c4662382d5a132763aed5f499db95e7357b898 Mon Sep 17 00:00:00 2001 +From: compile_success <980965867@qq.com> +Date: Mon, 2 Dec 2024 14:36:41 +0000 +Subject: [PATCH] add recv wakeup + +--- + src/include/lwipgz_sock.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/include/lwipgz_sock.h b/src/include/lwipgz_sock.h +index 4f8e17b..f0ce3d4 100644 +--- a/src/include/lwipgz_sock.h ++++ b/src/include/lwipgz_sock.h +@@ -182,6 +182,7 @@ struct lwip_sock { + struct lwip_sock *listen_next; /* listenfd list */ + struct protocol_stack *stack; + struct wakeup_poll *wakeup; ++ struct wakeup_poll *recv_wakeup; + epoll_data_t ep_data; + struct rte_ring *recv_ring; + struct rte_ring *send_ring; +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 2fd341f..b51b580 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: 65 +Release: 66 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -190,6 +190,7 @@ Patch9174: 0175-fix-IFNAMSIZ-definition-conflict-between-lwip-and-ke.patch Patch9175: 0176-fix-no-ack-response-when-lcoal-only-receive-but-not-.patch Patch9176: 0001-bug-free-sock-when-func-goto-out.patch +Patch9177: 0177-add-recv-wakeup.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -219,6 +220,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Mon Dec 2 2024 zhujunhao - 2.2.0-66 +- bugfix: add recv_wakeup for recv sem wait + * Thu Nov 28 2024 hankangkang - 2.2.0-65 - bug: free sock when exit -- Gitee