kernel/4.19: fix bbr patch by again and again (#44)
This commit is contained in:
parent
acaa200e9f
commit
297fa94895
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user