1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 19:31:52 +00:00

Update MPTCP patch for latest kernel

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-19 17:13:37 +01:00
parent 4726683899
commit 6a023e182c

View file

@ -4592,12 +4592,13 @@ diff -aurN linux-5.4.64/net/ipv4/tcp_input.c linux-5.4.64.mptcp/net/ipv4/tcp_inp
{ {
int eaten; int eaten;
struct sk_buff *tail = skb_peek_tail(&sk->sk_receive_queue); struct sk_buff *tail = skb_peek_tail(&sk->sk_receive_queue);
@@ -4774,7 +4838,7 @@ @@ -4774,8 +4838,8 @@
int avail = tp->rcv_nxt - tp->copied_seq; int avail = tp->rcv_nxt - tp->copied_seq;
if (avail < sk->sk_rcvlowat && !tcp_rmem_pressure(sk) && if (avail < sk->sk_rcvlowat && !tcp_rmem_pressure(sk) &&
- !sock_flag(sk, SOCK_DONE)) - !sock_flag(sk, SOCK_DONE) &&
+ !sock_flag(sk, SOCK_DONE) && !mptcp(tp)) + !sock_flag(sk, SOCK_DONE) && !mptcp(tp) &&
tcp_receive_window(tp) > inet_csk(sk)->icsk_ack.rcv_mss)
return; return;
sk->sk_data_ready(sk); sk->sk_data_ready(sk);