fix move lpcb to the front of list error
(cherry picked from commit 1a914bea5e118c1a5ff8b6ca6207edd28e66f6e4)
This commit is contained in:
parent
04ad08877d
commit
285fa1aa18
27
0107-fix-move-lpcb-to-the-front-of-list-error.patch
Normal file
27
0107-fix-move-lpcb-to-the-front-of-list-error.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From e2754cc316ca1fadabfbd8c927275a0d0d50d867 Mon Sep 17 00:00:00 2001
|
||||||
|
From: jiangheng <jiangheng14@huawei.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -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: 112
|
Release: 113
|
||||||
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
|
||||||
@ -123,6 +123,7 @@ Patch9102: 0103-adapt-for-dpdk-23.11.patch
|
|||||||
Patch9103: 0104-optimize-enqueue-for-unacked-and-unsent-queue.patch
|
Patch9103: 0104-optimize-enqueue-for-unacked-and-unsent-queue.patch
|
||||||
Patch9104: 0105-delete-redundant-logs-in-lwip.patch
|
Patch9104: 0105-delete-redundant-logs-in-lwip.patch
|
||||||
Patch9105: 0106-remove-unnecessary-variables-in-struct-pbuf.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
|
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
||||||
|
|
||||||
@ -152,6 +153,9 @@ cd %{_builddir}/%{name}-%{version}/src
|
|||||||
%{_libdir}/liblwip.a
|
%{_libdir}/liblwip.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 30 2024 jiangheng <jiangheng14@huawei.com> - 2.1.3-113
|
||||||
|
- fix move lpcb to the front of list error
|
||||||
|
|
||||||
* Wed Jan 24 2024 jiangheng <jiangheng14@huawei.com> - 2.1.3-112
|
* Wed Jan 24 2024 jiangheng <jiangheng14@huawei.com> - 2.1.3-112
|
||||||
- adapt for dpdk-23.11
|
- adapt for dpdk-23.11
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user