David Morley 300b655db1 tcp: fix rate_app_limited to default to 1
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: eb8329e0a04d ("tcp: export data delivery rate")
Suggested-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David Morley <morleyd@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Tested-by: David Morley <morleyd@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-01-20 13:23:35 +00:00
..
2023-01-12 17:02:20 -06:00
2022-12-13 15:47:48 -08:00
2022-12-17 14:06:53 -06:00
2022-12-13 15:47:48 -08:00
2023-01-09 07:37:07 +00:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2023-01-10 15:03:06 -06:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-16 03:54:54 -08:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00
2022-12-13 15:47:48 -08:00