Eric Dumazet
80f402e333
tcp_metrics: do not create an entry from tcp_init_metrics()
...
[ Upstream commit a135798e6e200ecb2f864cecca6d257ba278370c ]
tcp_init_metrics() only wants to get metrics if they were
previously stored in the cache. Creating an entry is adding
useless costs, especially when tcp_no_metrics_save is set.
Fixes: 51c5d0c4b169 ("tcp: Maintain dynamic metrics in local cache.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:27:33 +01:00
..
2023-08-11 11:33:32 +02:00
2022-11-10 15:47:22 +01:00
2022-07-21 20:42:44 +02:00
2019-11-10 11:25:37 +01:00
2021-12-08 08:46:53 +01:00
2023-06-28 10:14:19 +02:00
2023-10-25 11:13:31 +02:00
2023-03-22 13:26:14 +01:00
2020-06-30 15:38:00 -04:00
2020-08-21 09:48:00 +02:00
2019-04-27 09:35:34 +02:00
2020-03-20 10:54:07 +01:00
2020-08-21 09:48:01 +02:00
2023-04-20 12:02:10 +02:00
2023-09-23 10:46:59 +02:00
2023-03-11 16:26:55 +01:00
2020-11-24 13:05:37 +01:00
2019-04-27 09:35:40 +02:00
2023-03-11 16:26:42 +01:00
2022-07-21 20:42:44 +02:00
2019-04-27 09:35:40 +02:00
2022-05-12 12:17:07 +02:00
2022-11-10 15:47:22 +01:00
2019-04-17 08:37:48 +02:00
2023-09-23 10:46:55 +02:00
2019-01-23 08:09:47 +01:00
2019-08-04 09:32:03 +02:00
2023-03-22 13:26:14 +01:00
2023-08-30 16:35:12 +02:00
2021-06-30 08:48:47 -04:00
2020-06-03 08:17:31 +02:00
2022-02-16 12:44:51 +01:00
2022-12-08 11:16:31 +01:00
2022-05-18 09:18:09 +02:00
2019-06-17 19:52:44 +02:00
2020-03-20 10:54:13 +01:00
2022-04-20 09:08:28 +02:00
2023-10-10 21:43:38 +02:00
2020-11-18 18:28:00 +01:00
2022-11-10 15:47:22 +01:00
2021-08-26 08:37:02 -04:00
2022-11-25 17:36:54 +01:00
2020-12-08 10:17:33 +01:00
2021-12-08 08:46:49 +01:00
2019-04-17 08:37:47 +02:00
2023-08-11 11:33:50 +02:00
2023-11-08 11:21:06 +01:00
2022-12-08 11:16:30 +01:00
2023-11-20 10:27:33 +01:00
2023-03-11 16:26:53 +01:00
2023-03-22 13:26:13 +01:00
2021-02-03 23:22:23 +01:00
2023-09-23 10:46:55 +02:00
2018-09-15 09:45:29 +02:00
2023-08-11 11:33:50 +02:00
2020-03-20 10:54:13 +01:00
2021-03-17 16:34:28 +01:00
2023-01-18 09:26:19 +01:00
2023-04-26 11:18:57 +02:00
2023-04-26 11:18:57 +02:00
2018-11-04 14:52:37 +01:00
2018-11-04 14:52:37 +01:00
2020-05-02 17:24:18 +02:00
2022-02-23 11:57:34 +01:00
2022-06-14 16:53:58 +02:00