mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-01 18:38:51 +07:00
[TCP] BIC: spelling and whitespace
Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
018da8f44c
commit
05d054503a
@ -210,14 +210,14 @@ static void bictcp_state(struct sock *sk, u8 new_state)
|
|||||||
bictcp_reset(inet_csk_ca(sk));
|
bictcp_reset(inet_csk_ca(sk));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Track delayed acknowledgement ratio using sliding window
|
/* Track delayed acknowledgment ratio using sliding window
|
||||||
* ratio = (15*ratio + sample) / 16
|
* ratio = (15*ratio + sample) / 16
|
||||||
*/
|
*/
|
||||||
static void bictcp_acked(struct sock *sk, u32 cnt)
|
static void bictcp_acked(struct sock *sk, u32 cnt)
|
||||||
{
|
{
|
||||||
const struct inet_connection_sock *icsk = inet_csk(sk);
|
const struct inet_connection_sock *icsk = inet_csk(sk);
|
||||||
|
|
||||||
if (cnt > 0 && icsk->icsk_ca_state == TCP_CA_Open) {
|
if (cnt > 0 && icsk->icsk_ca_state == TCP_CA_Open) {
|
||||||
struct bictcp *ca = inet_csk_ca(sk);
|
struct bictcp *ca = inet_csk_ca(sk);
|
||||||
cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT;
|
cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT;
|
||||||
ca->delayed_ack += cnt;
|
ca->delayed_ack += cnt;
|
||||||
|
Loading…
Reference in New Issue
Block a user