1195972f6Sopenharmony_ciFrom 30f5815c847060c5ad4075e81581771b8d0cbb72 Mon Sep 17 00:00:00 2001 2195972f6Sopenharmony_ciFrom: Lemmy Huang <huangliming5@huawei.com> 3195972f6Sopenharmony_ciDate: Thu, 8 Jun 2023 15:15:07 +0800 4195972f6Sopenharmony_ciSubject: [PATCH] optimize: avoid too many empty acks in tcp_input 5195972f6Sopenharmony_ci 6195972f6Sopenharmony_ciSigned-off-by: Lemmy Huang <huangliming5@huawei.com> 7195972f6Sopenharmony_ci--- 8195972f6Sopenharmony_ci src/core/tcp_in.c | 6 +----- 9195972f6Sopenharmony_ci 1 file changed, 1 insertion(+), 5 deletions(-) 10195972f6Sopenharmony_ci 11195972f6Sopenharmony_cidiff --git a/src/core/tcp_in.c b/src/core/tcp_in.c 12195972f6Sopenharmony_ciindex 7e7d70ab..0abee303 100644 13195972f6Sopenharmony_ci--- a/src/core/tcp_in.c 14195972f6Sopenharmony_ci+++ b/src/core/tcp_in.c 15195972f6Sopenharmony_ci@@ -1807,11 +1807,7 @@ tcp_receive(struct tcp_pcb *pcb) 16195972f6Sopenharmony_ci 17195972f6Sopenharmony_ci 18195972f6Sopenharmony_ci /* Acknowledge the segment(s). */ 19195972f6Sopenharmony_ci- if (flags & TCP_PSH) { 20195972f6Sopenharmony_ci- tcp_ack_now(pcb); 21195972f6Sopenharmony_ci- } else { 22195972f6Sopenharmony_ci- tcp_ack(pcb); 23195972f6Sopenharmony_ci- } 24195972f6Sopenharmony_ci+ tcp_ack(pcb); 25195972f6Sopenharmony_ci 26195972f6Sopenharmony_ci #if LWIP_TCP_SACK_OUT 27195972f6Sopenharmony_ci if (LWIP_TCP_SACK_VALID(pcb, 0)) { 28195972f6Sopenharmony_ci-- 29195972f6Sopenharmony_ci2.22.0.windows.1 30195972f6Sopenharmony_ci 31