Skip to content
Commit 8cca0afc authored by David Morley's avatar David Morley Committed by Greg Kroah-Hartman
Browse files

tcp: fix rate_app_limited to default to 1



[ Upstream commit 300b655d ]

The initial default value of 0 for tp->rate_app_limited was incorrect,
since a flow is indeed application-limited until it first sends
data. Fixing the default to be 1 is generally correct but also
specifically will help user-space applications avoid using the initial
tcpi_delivery_rate value of 0 that persists until the connection has
some non-zero bandwidth sample.

Fixes: eb8329e0 ("tcp: export data delivery rate")
Suggested-by: default avatarYuchung Cheng <ycheng@google.com>
Signed-off-by: default avatarDavid Morley <morleyd@google.com>
Signed-off-by: default avatarNeal Cardwell <ncardwell@google.com>
Tested-by: default avatarDavid Morley <morleyd@google.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 11a4d51a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment