Skip to content

Commit

Permalink
Merge branch 'test' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 committed Jun 17, 2021
2 parents 892a7e8 + 0f5def0 commit 853b7f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ else
scripts/feeds install -a -d y -f -p openmptcprouter
fi
cp .config.keep .config
scripts/feeds install kmod-macremapper
echo "Done"

if [ ! -f "../../$OMR_TARGET_CONFIG" ]; then
Expand Down
10 changes: 5 additions & 5 deletions root/target/linux/generic/hack-5.4/690-mptcp_trunk.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11843,7 +11843,7 @@ diff -aurN linux-5.4.64/net/mptcp/mptcp_ctrl.c linux-5.4.64.mptcp/net/mptcp/mptc
+#endif
+ }
+drop:
+ __NET_INC_STATS(sock_net(sk), LINUX_MIB_LISTENDROPS);
+ NET_INC_STATS(sock_net(sk), LINUX_MIB_LISTENDROPS);
+ return 0;
+}
+
Expand Down Expand Up @@ -14734,7 +14734,7 @@ diff -aurN linux-5.4.64/net/mptcp/mptcp_input.c linux-5.4.64.mptcp/net/mptcp/mpt
+ meta_tp->rcv_nxt))) {
+ mptcp_send_active_reset(meta_sk, GFP_ATOMIC);
+ tcp_done(meta_sk);
+ __NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPABORTONDATA);
+ NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPABORTONDATA);
+ return -1;
+ }
+
Expand Down Expand Up @@ -14775,7 +14775,7 @@ diff -aurN linux-5.4.64/net/mptcp/mptcp_input.c linux-5.4.64.mptcp/net/mptcp/mpt
+ if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq &&
+ after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt) &&
+ !mptcp_is_data_fin2(skb, tp)) {
+ __NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPABORTONDATA);
+ NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPABORTONDATA);
+ mptcp_send_active_reset(meta_sk, GFP_ATOMIC);
+ tcp_reset(meta_sk);
+ return -1;
Expand Down Expand Up @@ -21440,7 +21440,7 @@ diff -aurN linux-5.4.64/net/mptcp/mptcp_output.c linux-5.4.64.mptcp/net/mptcp/mp
+ return 0;
+
+failed:
+ __NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPRETRANSFAIL);
+ NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPRETRANSFAIL);
+ return err;
+}
+
Expand Down Expand Up @@ -21499,7 +21499,7 @@ diff -aurN linux-5.4.64/net/mptcp/mptcp_output.c linux-5.4.64.mptcp/net/mptcp/mp
+ return;
+
+ if (meta_icsk->icsk_retransmits == 0)
+ __NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPTIMEOUTS);
+ NET_INC_STATS(sock_net(meta_sk), LINUX_MIB_TCPTIMEOUTS);
+
+ meta_icsk->icsk_ca_state = TCP_CA_Loss;
+
Expand Down

0 comments on commit 853b7f0

Please sign in to comment.