mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
[TCP] FRTO: frto_counter modulo-op converted to two assignments
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
52c63f1e86
commit
94d0ea7786
@ -2551,11 +2551,11 @@ static void tcp_process_frto(struct sock *sk, u32 prior_snd_una, int flag)
|
||||
|
||||
if (tp->frto_counter == 1) {
|
||||
tp->snd_cwnd = tcp_packets_in_flight(tp) + 2;
|
||||
tp->frto_counter = 2;
|
||||
} else /* frto_counter == 2 */ {
|
||||
tcp_conservative_spur_to_response(tp);
|
||||
tp->frto_counter = 0;
|
||||
}
|
||||
|
||||
tp->frto_counter = (tp->frto_counter + 1) % 3;
|
||||
}
|
||||
|
||||
/* This routine deals with incoming acks, but not outgoing ones. */
|
||||
|
Loading…
Reference in New Issue
Block a user