diff options
| author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2025-02-28 07:23:19 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-04 02:04:09 +0300 |
| commit | cfc47029fa124e5e04411fb1dbd3726db90fd346 (patch) | |
| tree | 20b42aa20d930fb4183510d91dc93e05e350188b /tools/perf/scripts/python | |
| parent | fa336adc100e1d76a50da782c3e9abb1541a72f3 (diff) | |
| download | linux-cfc47029fa124e5e04411fb1dbd3726db90fd346.tar.xz | |
ipv4: fib: Allocate fib_info_hash[] during netns initialisation.
We will allocate fib_info_hash[] and fib_info_laddrhash[] for each netns.
Currently, fib_info_hash[] is allocated when the first route is added.
Let's move the first allocation to a new __net_init function.
Note that we must call fib4_semantics_exit() in fib_net_exit_batch()
because ->exit() is called earlier than ->exit_batch().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250228042328.96624-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
