Commit e1505c1c authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Alexei Starovoitov

bpf: netdev: init the offload table earlier

Some netdevices may get unregistered before late_initcall(),
we have to move the hashtable init earlier.

Fixes: f1fc43d0 ("bpf: Move offload initialization into late_initcall")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217399Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Acked-by: default avatarStanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20230505215836.491485-1-kuba@kernel.orgSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 5f5486b6
...@@ -859,4 +859,4 @@ static int __init bpf_offload_init(void) ...@@ -859,4 +859,4 @@ static int __init bpf_offload_init(void)
return rhashtable_init(&offdevs, &offdevs_params); return rhashtable_init(&offdevs, &offdevs_params);
} }
late_initcall(bpf_offload_init); core_initcall(bpf_offload_init);
Markdown is supported
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