kernel/4.19: fix bbr patch by again and again

This commit is contained in:
CN_SZTL 2020-02-26 21:06:31 +08:00
parent 13804b9376
commit d50a3495c8
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -67,10 +67,10 @@ diff --git a/net/ipv4/tcp_bbr.c b/net/ipv4/tcp_bbr.c
/* Return rate in bytes per second, optionally with a gain.
@@ -206,2 +233,6 @@
*/
+static bool tcp_needs_internal_pacing(const struct sock *sk)
+{
+ return smp_load_acquire(&sk->sk_pacing_status) == SK_PACING_NEEDED;
+}
+
+
+
+
static u64 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain)
@@ -307,2 +338,4 @@
bbr->idle_restart = 1;
@ -332,4 +332,4 @@ diff --git a/net/ipv4/tcp_bbr.c b/net/ipv4/tcp_bbr.c
+ bbr->extra_acked[0] = 0;
+ bbr->extra_acked[1] = 0;
+
cmpxchg(&sk->sk_pacing_status, SK_PACING_NONE, SK_PACING_NEEDED);
cmpxchg(&sk->sk_pacing_status, SK_PACING_NONE, SK_PACING_NEEDED);