diff options
| author | Eric Dumazet <[email protected]> | 2023-08-03 13:54:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-08-04 15:33:39 -0700 |
| commit | c4a6b2da4b59d4819e1d35446ca9363166388051 (patch) | |
| tree | 1e768d38db013e883867e76219c1b85ab61bdeb8 /tools/perf/scripts/python/netdev-times.py | |
| parent | faa9039161ef0271bc36c2bf4d01c7897f07524d (diff) | |
tcp_metrics: hash table allocation cleanup
After commit 098a697b497e ("tcp_metrics: Use a single hash table
for all network namespaces.") we can avoid calling tcp_net_metrics_init()
for each new netns.
Instead, rename tcp_net_metrics_init() to tcp_metrics_hash_alloc(),
and move it to __init section.
Also move tcpmhash_entries to __initdata section.
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions