From 6528c86d3a141f7601cec12e4131d9ccd83a4abf Mon Sep 17 00:00:00 2001 From: kircher Date: Sat, 11 Feb 2023 20:19:14 +0800 Subject: [PATCH] fix TSO snd_nxt incorrectly update (cherry picked from commit 55317b8b6e067e6d20e88c77ed4f52d70c1b1f43) --- 0037-add-tso.patch | 2 +- 0040-optimite-pcb-list-limit-send-size-and-ack-now.patch | 2 +- lwip.spec | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/0037-add-tso.patch b/0037-add-tso.patch index 4f839d6..79627e8 100644 --- a/0037-add-tso.patch +++ b/0037-add-tso.patch @@ -269,7 +269,7 @@ index 7ebcfea..c4584ea 100644 + } + + pre_pbuf = seg->p; -+ next_seqno = seg_seqno + seg->len; ++ next_seqno = seg_seqno + TCP_TCPLEN(seg); + seg = seg->next; + pcb->unsent = seg; + pbuf_chain_len++; diff --git a/0040-optimite-pcb-list-limit-send-size-and-ack-now.patch b/0040-optimite-pcb-list-limit-send-size-and-ack-now.patch index 0ca6a88..2c47b15 100644 --- a/0040-optimite-pcb-list-limit-send-size-and-ack-now.patch +++ b/0040-optimite-pcb-list-limit-send-size-and-ack-now.patch @@ -176,7 +176,7 @@ index f53750b..55053d8 100644 + send_len += seg->len; pre_pbuf = seg->p; - next_seqno = seg_seqno + seg->len; + next_seqno = seg_seqno + TCP_TCPLEN(seg); seg = seg->next; @@ -1519,8 +1520,11 @@ tcp_output(struct tcp_pcb *pcb) diff --git a/lwip.spec b/lwip.spec index 0c4a5de..682cadf 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.2 -Release: 27 +Release: 28 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -141,6 +141,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Sat Feb 11 2023 majun - 2.1.2-28 +- fix TSO snd_nxt incorrectly update + * Fri Dec 30 2022 wuchangsheng - 2.1.2-27 - expand recv mbox size