From 285fa1aa1810b14f1b0ef08a68d9563367eaf1aa Mon Sep 17 00:00:00 2001 From: jiangheng Date: Tue, 30 Jan 2024 15:41:23 +0800 Subject: [PATCH] fix move lpcb to the front of list error (cherry picked from commit 1a914bea5e118c1a5ff8b6ca6207edd28e66f6e4) --- ...move-lpcb-to-the-front-of-list-error.patch | 27 +++++++++++++++++++ lwip.spec | 6 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0107-fix-move-lpcb-to-the-front-of-list-error.patch diff --git a/0107-fix-move-lpcb-to-the-front-of-list-error.patch b/0107-fix-move-lpcb-to-the-front-of-list-error.patch new file mode 100644 index 0000000..7d68411 --- /dev/null +++ b/0107-fix-move-lpcb-to-the-front-of-list-error.patch @@ -0,0 +1,27 @@ +From e2754cc316ca1fadabfbd8c927275a0d0d50d867 Mon Sep 17 00:00:00 2001 +From: jiangheng +Date: Tue, 30 Jan 2024 15:38:13 +0800 +Subject: [PATCH] fix move lpcb to the front of list error + +--- + src/core/tcp_in.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c +index ec1905f..9d5a695 100644 +--- a/src/core/tcp_in.c ++++ b/src/core/tcp_in.c +@@ -454,6 +454,10 @@ tcp_input(struct pbuf *p, struct netif *inp) + /* our successor is the remainder of the listening list */ + lpcb->next = tcp_listen_pcbs.listen_pcbs; + #if GAZELLE_ENABLE ++ /* prev is head */ ++ if (prev->prev == NULL) { ++ prev->prev = (struct tcp_pcb *)lpcb; ++ } + lpcb->prev = NULL; + #endif + /* put this listening pcb at the head of the listening list */ +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 0ae930d..6302eb8 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.1.3 -Release: 112 +Release: 113 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -123,6 +123,7 @@ Patch9102: 0103-adapt-for-dpdk-23.11.patch Patch9103: 0104-optimize-enqueue-for-unacked-and-unsent-queue.patch Patch9104: 0105-delete-redundant-logs-in-lwip.patch Patch9105: 0106-remove-unnecessary-variables-in-struct-pbuf.patch +Patch9106: 0107-fix-move-lpcb-to-the-front-of-list-error.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -152,6 +153,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Tue Jan 30 2024 jiangheng - 2.1.3-113 +- fix move lpcb to the front of list error + * Wed Jan 24 2024 jiangheng - 2.1.3-112 - adapt for dpdk-23.11