Skip to content

Commit 917c9e2

Browse files
Refresh patches
Refine compile stand-by works Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com>
1 parent b11145f commit 917c9e2

65 files changed

Lines changed: 2074 additions & 1709 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/R2S-OpenWrt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
sudo -E apt-get -qq install aria2
4646
sudo -E wget -P /usr/local/sbin/ https://github.com/HiGarfield/lede-17.01.4-Mod/raw/master/.github/backup/apt-fast
4747
sudo -E chmod -R 755 /usr/local/sbin/apt-fast
48-
sudo -E apt-fast -y -qq install dwarves llvm clang lldb lld build-essential rsync asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget ccache curl swig coreutils vim nano python3 python3-pip python3-ply haveged lrzsz scons
49-
sudo -H pip3 install pyelftools pylibfdt
48+
sudo -E apt-get -y -qq install dwarves llvm clang lldb lld build-essential rsync asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget ccache curl swig coreutils vim nano python3 python3-dev python3-pip python3-ply python3-pyelftools lrzsz scons
49+
pip3 install --user -U pylibfdt
5050
sudo -E apt-get -qq autoremove --purge
5151
sudo -E apt-get -qq clean
5252
sudo -E git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'

.github/workflows/R4S-OpenWrt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
sudo -E apt-get -qq install aria2
4646
sudo -E wget -P /usr/local/sbin/ https://github.com/HiGarfield/lede-17.01.4-Mod/raw/master/.github/backup/apt-fast
4747
sudo -E chmod -R 755 /usr/local/sbin/apt-fast
48-
sudo -E apt-fast -y -qq install dwarves llvm clang lldb lld build-essential rsync asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget ccache curl swig coreutils vim nano python3 python3-pip python3-ply haveged lrzsz scons
49-
sudo -H pip3 install pyelftools pylibfdt
48+
sudo -E apt-get -y -qq install dwarves llvm clang lldb lld build-essential rsync asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget ccache curl swig coreutils vim nano python3 python3-dev python3-pip python3-ply python3-pyelftools lrzsz scons
49+
pip3 install --user -U pylibfdt
5050
sudo -E apt-get -qq autoremove --purge
5151
sudo -E apt-get -qq clean
5252
sudo -E git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'

.github/workflows/X86-OpenWrt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
sudo -E apt-get -qq install aria2
4646
sudo -E wget -P /usr/local/sbin/ https://github.com/HiGarfield/lede-17.01.4-Mod/raw/master/.github/backup/apt-fast
4747
sudo -E chmod -R 755 /usr/local/sbin/apt-fast
48-
sudo -E apt-fast -y -qq install dwarves llvm clang lldb lld build-essential rsync asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget ccache curl swig coreutils vim nano python3 python3-pip python3-ply haveged lrzsz scons
49-
sudo -H pip3 install pyelftools pylibfdt
48+
sudo -E apt-get -y -qq install dwarves llvm clang lldb lld build-essential rsync asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib p7zip-full msmtp libssl-dev texinfo libreadline-dev libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget ccache curl swig coreutils vim nano python3 python3-dev python3-pip python3-ply python3-pyelftools lrzsz scons
49+
pip3 install --user -U pylibfdt
5050
sudo -E apt-get -qq autoremove --purge
5151
sudo -E apt-get -qq clean
5252
sudo -E git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'

PATCH/BBRv3/kernel/010-bbr3-0001-net-tcp_bbr-broaden-app-limited-rate-sample-detectio.patch

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,23 @@ Change-Id: I37221506f5166877c2b110753d39bb0757985e68
2929
net/ipv4/tcp_timer.c | 1 +
3030
2 files changed, 2 insertions(+)
3131

32-
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
33-
index 6849094e5..23ac1f0e3 100644
3432
--- a/net/ipv4/tcp_input.c
3533
+++ b/net/ipv4/tcp_input.c
36-
@@ -3811,6 +3811,7 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
34+
@@ -3811,6 +3811,7 @@ static int tcp_ack(struct sock *sk, cons
3735

3836
prior_fack = tcp_is_sack(tp) ? tcp_highest_sack_seq(tp) : tp->snd_una;
3937
rs.prior_in_flight = tcp_packets_in_flight(tp);
4038
+ tcp_rate_check_app_limited(sk);
4139

4240
/* ts_recent update must be made after we are sure that the packet
4341
* is in window.
44-
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
45-
index a8592c187..d00dbeb29 100644
4642
--- a/net/ipv4/tcp_timer.c
4743
+++ b/net/ipv4/tcp_timer.c
48-
@@ -613,6 +613,7 @@ void tcp_write_timer_handler(struct sock *sk)
44+
@@ -611,6 +611,7 @@ void tcp_write_timer_handler(struct sock
4945
goto out;
5046
}
5147

5248
+ tcp_rate_check_app_limited(sk);
5349
tcp_mstamp_refresh(tcp_sk(sk));
5450
event = icsk->icsk_pending;
5551

56-
--
57-
2.39.3
58-

PATCH/BBRv3/kernel/010-bbr3-0002-net-tcp_bbr-v2-shrink-delivered_mstamp-first_tx_msta.patch

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ Change-Id: I3b779603797263b52a61ad57c565eb91fe42680c
2222
net/ipv4/tcp_rate.c | 7 ++++---
2323
2 files changed, 11 insertions(+), 5 deletions(-)
2424

25-
diff --git a/include/net/tcp.h b/include/net/tcp.h
26-
index d8920f84f..ef15d509a 100644
2725
--- a/include/net/tcp.h
2826
+++ b/include/net/tcp.h
29-
@@ -800,6 +800,11 @@ static inline u32 tcp_stamp_us_delta(u64 t1, u64 t0)
27+
@@ -800,6 +800,11 @@ static inline u32 tcp_stamp_us_delta(u64
3028
return max_t(s64, t1 - t0, 0);
3129
}
3230

@@ -50,11 +48,9 @@ index d8920f84f..ef15d509a 100644
5048
} tx; /* only used for outgoing skbs */
5149
union {
5250
struct inet_skb_parm h4;
53-
diff --git a/net/ipv4/tcp_rate.c b/net/ipv4/tcp_rate.c
54-
index 042e27f54..cbb2cbe0f 100644
5551
--- a/net/ipv4/tcp_rate.c
5652
+++ b/net/ipv4/tcp_rate.c
57-
@@ -99,8 +99,9 @@ void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb,
53+
@@ -99,8 +99,9 @@ void tcp_rate_skb_delivered(struct sock
5854
/* Record send time of most recently ACKed packet: */
5955
tp->first_tx_mstamp = tx_tstamp;
6056
/* Find the duration of the "send phase" of this window: */
@@ -66,7 +62,7 @@ index 042e27f54..cbb2cbe0f 100644
6662

6763
}
6864
/* Mark off the skb delivered once it's sacked to avoid being
69-
@@ -149,7 +150,7 @@ void tcp_rate_gen(struct sock *sk, u32 delivered, u32 lost,
65+
@@ -149,7 +150,7 @@ void tcp_rate_gen(struct sock *sk, u32 d
7066
* longer phase.
7167
*/
7268
snd_us = rs->interval_us; /* send phase */
@@ -75,6 +71,3 @@ index 042e27f54..cbb2cbe0f 100644
7571
rs->prior_mstamp); /* ack phase */
7672
rs->interval_us = max(snd_us, ack_us);
7773

78-
--
79-
2.39.3
80-

PATCH/BBRv3/kernel/010-bbr3-0003-net-tcp_bbr-v2-snapshot-packets-in-flight-at-transmi.patch

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Change-Id: I7314047d0ff14dd261a04b1969a46dc658c8836a
2424
net/ipv4/tcp_rate.c | 20 ++++++++++++++++++++
2525
3 files changed, 28 insertions(+), 2 deletions(-)
2626

27-
diff --git a/include/net/tcp.h b/include/net/tcp.h
28-
index ef15d509a..808f01070 100644
2927
--- a/include/net/tcp.h
3028
+++ b/include/net/tcp.h
3129
@@ -873,8 +873,7 @@ struct tcp_skb_cb {
@@ -57,28 +55,24 @@ index ef15d509a..808f01070 100644
5755
s32 delivered; /* number of packets delivered over interval */
5856
long interval_us; /* time for tp->delivered to incr "delivered" */
5957
u32 snd_interval_us; /* snd interval for delivered packets */
60-
@@ -1151,6 +1155,7 @@ static inline void tcp_ca_event(struct sock *sk, const enum tcp_ca_event event)
58+
@@ -1151,6 +1155,7 @@ static inline void tcp_ca_event(struct s
6159
}
6260

6361
/* From tcp_rate.c */
6462
+void tcp_set_tx_in_flight(struct sock *sk, struct sk_buff *skb);
6563
void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb);
6664
void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb,
6765
struct rate_sample *rs);
68-
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
69-
index d46fb6d70..b455d9f24 100644
7066
--- a/net/ipv4/tcp_output.c
7167
+++ b/net/ipv4/tcp_output.c
72-
@@ -2633,6 +2633,7 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
68+
@@ -2633,6 +2633,7 @@ static bool tcp_write_xmit(struct sock *
7369
skb->skb_mstamp_ns = tp->tcp_wstamp_ns = tp->tcp_clock_cache;
7470
list_move_tail(&skb->tcp_tsorted_anchor, &tp->tsorted_sent_queue);
7571
tcp_init_tso_segs(skb, mss_now);
7672
+ tcp_set_tx_in_flight(sk, skb);
7773
goto repair; /* Skip network transmission */
7874
}
7975

80-
diff --git a/net/ipv4/tcp_rate.c b/net/ipv4/tcp_rate.c
81-
index cbb2cbe0f..50a292d48 100644
8276
--- a/net/ipv4/tcp_rate.c
8377
+++ b/net/ipv4/tcp_rate.c
8478
@@ -34,6 +34,24 @@
@@ -106,22 +100,19 @@ index cbb2cbe0f..50a292d48 100644
106100
/* Snapshot the current delivery information in the skb, to generate
107101
* a rate sample later when the skb is (s)acked in tcp_rate_skb_delivered().
108102
*/
109-
@@ -66,6 +84,7 @@ void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb)
103+
@@ -66,6 +84,7 @@ void tcp_rate_skb_sent(struct sock *sk,
110104
TCP_SKB_CB(skb)->tx.delivered_mstamp = tp->delivered_mstamp;
111105
TCP_SKB_CB(skb)->tx.delivered = tp->delivered;
112106
TCP_SKB_CB(skb)->tx.is_app_limited = tp->app_limited ? 1 : 0;
113107
+ tcp_set_tx_in_flight(sk, skb);
114108
}
115109

116110
/* When an skb is sacked or acked, we fill in the rate sample with the (prior)
117-
@@ -94,6 +113,7 @@ void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb,
111+
@@ -94,6 +113,7 @@ void tcp_rate_skb_delivered(struct sock
118112
rs->prior_mstamp = scb->tx.delivered_mstamp;
119113
rs->is_app_limited = scb->tx.is_app_limited;
120114
rs->is_retrans = scb->sacked & TCPCB_RETRANS;
121115
+ rs->tx_in_flight = scb->tx.in_flight;
122116
rs->last_end_seq = scb->end_seq;
123117

124118
/* Record send time of most recently ACKed packet: */
125-
--
126-
2.39.3
127-

PATCH/BBRv3/kernel/010-bbr3-0004-net-tcp_bbr-v2-count-packets-lost-over-TCP-rate-samp.patch

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Change-Id: I594c2500868d9c530770e7ddd68ffc87c57f4fd5
1616
net/ipv4/tcp_rate.c | 3 +++
1717
2 files changed, 7 insertions(+)
1818

19-
diff --git a/include/net/tcp.h b/include/net/tcp.h
20-
index 808f01070..ebf984b01 100644
2119
--- a/include/net/tcp.h
2220
+++ b/include/net/tcp.h
2321
@@ -885,6 +885,7 @@ struct tcp_skb_cb {
@@ -41,34 +39,29 @@ index 808f01070..ebf984b01 100644
4139
long interval_us; /* time for tp->delivered to incr "delivered" */
4240
u32 snd_interval_us; /* snd interval for delivered packets */
4341
u32 rcv_interval_us; /* rcv interval for delivered packets */
44-
diff --git a/net/ipv4/tcp_rate.c b/net/ipv4/tcp_rate.c
45-
index 50a292d48..f3413e5e2 100644
4642
--- a/net/ipv4/tcp_rate.c
4743
+++ b/net/ipv4/tcp_rate.c
48-
@@ -83,6 +83,7 @@ void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb)
44+
@@ -83,6 +83,7 @@ void tcp_rate_skb_sent(struct sock *sk,
4945
TCP_SKB_CB(skb)->tx.first_tx_mstamp = tp->first_tx_mstamp;
5046
TCP_SKB_CB(skb)->tx.delivered_mstamp = tp->delivered_mstamp;
5147
TCP_SKB_CB(skb)->tx.delivered = tp->delivered;
5248
+ TCP_SKB_CB(skb)->tx.lost = tp->lost;
5349
TCP_SKB_CB(skb)->tx.is_app_limited = tp->app_limited ? 1 : 0;
5450
tcp_set_tx_in_flight(sk, skb);
5551
}
56-
@@ -109,6 +110,7 @@ void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb,
52+
@@ -109,6 +110,7 @@ void tcp_rate_skb_delivered(struct sock
5753
if (!rs->prior_delivered ||
5854
tcp_skb_sent_after(tx_tstamp, tp->first_tx_mstamp,
5955
scb->end_seq, rs->last_end_seq)) {
6056
+ rs->prior_lost = scb->tx.lost;
6157
rs->prior_delivered = scb->tx.delivered;
6258
rs->prior_mstamp = scb->tx.delivered_mstamp;
6359
rs->is_app_limited = scb->tx.is_app_limited;
64-
@@ -163,6 +165,7 @@ void tcp_rate_gen(struct sock *sk, u32 delivered, u32 lost,
60+
@@ -163,6 +165,7 @@ void tcp_rate_gen(struct sock *sk, u32 d
6561
return;
6662
}
6763
rs->delivered = tp->delivered - rs->prior_delivered;
6864
+ rs->lost = tp->lost - rs->prior_lost;
6965

7066
/* Model sending data and receiving ACKs as separate pipeline phases
7167
* for a window. Usually the ACK phase is longer, but with ACK
72-
--
73-
2.39.3
74-

PATCH/BBRv3/kernel/010-bbr3-0005-net-tcp_bbr-v2-export-FLAG_ECE-in-rate_sample.is_ece.patch

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Change-Id: I3a964e04cee83e11649a54507043d2dfe769a3b3
1515
net/ipv4/tcp_input.c | 1 +
1616
2 files changed, 2 insertions(+)
1717

18-
diff --git a/include/net/tcp.h b/include/net/tcp.h
19-
index ebf984b01..a498d3f01 100644
2018
--- a/include/net/tcp.h
2119
+++ b/include/net/tcp.h
2220
@@ -1047,6 +1047,7 @@ struct rate_sample {
@@ -27,18 +25,13 @@ index ebf984b01..a498d3f01 100644
2725
};
2826

2927
struct tcp_congestion_ops {
30-
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
31-
index 23ac1f0e3..70418310e 100644
3228
--- a/net/ipv4/tcp_input.c
3329
+++ b/net/ipv4/tcp_input.c
34-
@@ -3910,6 +3910,7 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
30+
@@ -3910,6 +3910,7 @@ static int tcp_ack(struct sock *sk, cons
3531
delivered = tcp_newly_delivered(sk, delivered, flag);
3632
lost = tp->lost - lost; /* freshly marked lost */
3733
rs.is_ack_delayed = !!(flag & FLAG_ACK_MAYBE_DELAYED);
3834
+ rs.is_ece = !!(flag & FLAG_ECE);
3935
tcp_rate_gen(sk, delivered, lost, is_sack_reneg, sack_state.rate);
4036
tcp_cong_control(sk, ack, delivered, flag, sack_state.rate);
4137
tcp_xmit_recovery(sk, rexmit);
42-
--
43-
2.39.3
44-

PATCH/BBRv3/kernel/010-bbr3-0006-net-tcp_bbr-v2-introduce-ca_ops-skb_marked_lost-CC-m.patch

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ Change-Id: I54826ab53df636be537e5d3c618a46145d12d51a
2727
net/ipv4/tcp_input.c | 5 +++++
2828
2 files changed, 8 insertions(+)
2929

30-
diff --git a/include/net/tcp.h b/include/net/tcp.h
31-
index a498d3f01..a9f5b0aa4 100644
3230
--- a/include/net/tcp.h
3331
+++ b/include/net/tcp.h
3432
@@ -1074,6 +1074,9 @@ struct tcp_congestion_ops {
@@ -41,11 +39,9 @@ index a498d3f01..a9f5b0aa4 100644
4139
/* call when packets are delivered to update cwnd and pacing rate,
4240
* after all the ca_state processing. (optional)
4341
*/
44-
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
45-
index 70418310e..d608df40e 100644
4642
--- a/net/ipv4/tcp_input.c
4743
+++ b/net/ipv4/tcp_input.c
48-
@@ -1072,7 +1072,12 @@ static void tcp_verify_retransmit_hint(struct tcp_sock *tp, struct sk_buff *skb)
44+
@@ -1072,7 +1072,12 @@ static void tcp_verify_retransmit_hint(s
4945
*/
5046
static void tcp_notify_skb_loss_event(struct tcp_sock *tp, const struct sk_buff *skb)
5147
{
@@ -58,6 +54,3 @@ index 70418310e..d608df40e 100644
5854
}
5955

6056
void tcp_mark_skb_lost(struct sock *sk, struct sk_buff *skb)
61-
--
62-
2.39.3
63-

PATCH/BBRv3/kernel/010-bbr3-0007-net-tcp_bbr-v2-adjust-skb-tx.in_flight-upon-merge-in.patch

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ Change-Id: I1b0b75c27519953430c7db51c6f358f104c7af55
3636
net/ipv4/tcp_input.c | 11 +++++++++++
3737
1 file changed, 11 insertions(+)
3838

39-
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
40-
index d608df40e..6446e88eb 100644
4139
--- a/net/ipv4/tcp_input.c
4240
+++ b/net/ipv4/tcp_input.c
43-
@@ -1458,6 +1458,17 @@ static bool tcp_shifted_skb(struct sock *sk, struct sk_buff *prev,
41+
@@ -1458,6 +1458,17 @@ static bool tcp_shifted_skb(struct sock
4442
WARN_ON_ONCE(tcp_skb_pcount(skb) < pcount);
4543
tcp_skb_pcount_add(skb, -pcount);
4644

@@ -58,6 +56,3 @@ index d608df40e..6446e88eb 100644
5856
/* When we're adding to gso_segs == 1, gso_size will be zero,
5957
* in theory this shouldn't be necessary but as long as DSACK
6058
* code can come after this skb later on it's better to keep
61-
--
62-
2.39.3
63-

0 commit comments

Comments
 (0)