1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Merge branch 'Ysurac-develop' into testdevelop

fix
This commit is contained in:
suyuan 2021-02-17 19:46:40 +08:00
commit 2fb25eb70d
5 changed files with 4 additions and 2 deletions

View file

@ -23811,7 +23811,7 @@ diff --git a/include/net/tcp.h b/include/net/tcp.h
index 3e4f5179a835..93d53f5d5359 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -850,6 +850,30 @@ static inline u32 tcp_receive_window(const struct tcp_sock *tp)
@@ -850,6 +850,32 @@ static inline u32 tcp_receive_window(const struct tcp_sock *tp)
return (u32) win;
}
@ -23834,7 +23834,9 @@ index 3e4f5179a835..93d53f5d5359 100644
+{
+ s32 win = tp->rcv_right_edge - tp->rcv_nxt;
+
+ if (win < 0)
+ win = max_t(s32, win, tp->rcv_wup + tp->rcv_wnd - tp->rcv_nxt);
+
+ if (unlikely(win < 0))
+ win = 0;
+ return (u32) win;
+}

View file

0
root/target/linux/generic/hack-5.4/693-tcp_bbr2.patch Executable file → Normal file
View file

View file

View file