Commit 617417f9990b33c162c08a2e29cc356c50ce3943

Authored by Eric Dumazet
Committed by Greg Kroah-Hartman
1 parent 7a0189390e

tcp: ipv4: initialize unicast_sock sk_pacing_rate

[ Upstream commit 811230cd853d62f09ed0addd0ce9a1b9b0e13fb5 ]

When I added sk_pacing_rate field, I forgot to initialize its value
in the per cpu unicast_sock used in ip_send_unicast_reply()

This means that for sch_fq users, RST packets, or ACK packets sent
on behalf of TIME_WAIT sockets might be sent to slowly or even dropped
once we reach the per flow limit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 95bd09eb2750 ("tcp: TSO packets automatic sizing")
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/ipv4/ip_output.c
... ... @@ -1517,6 +1517,7 @@
1517 1517 .sk_wmem_alloc = ATOMIC_INIT(1),
1518 1518 .sk_allocation = GFP_ATOMIC,
1519 1519 .sk_flags = (1UL << SOCK_USE_WRITE_QUEUE),
  1520 + .sk_pacing_rate = ~0U,
1520 1521 },
1521 1522 .pmtudisc = IP_PMTUDISC_WANT,
1522 1523 .uc_ttl = -1,