kernel/4.19: fix bbr patch by again and again (#44)

This commit is contained in:
QiuSimons 2020-02-26 21:04:24 +08:00 committed by GitHub
parent acaa200e9f
commit 297fa94895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);