Skip to content

Commit e1505c1

Browse files
kuba-mooAlexei Starovoitov
authored andcommitted
bpf: netdev: init the offload table earlier
Some netdevices may get unregistered before late_initcall(), we have to move the hashtable init earlier. Fixes: f1fc43d ("bpf: Move offload initialization into late_initcall") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217399 Signed-off-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20230505215836.491485-1-kuba@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 5f5486b commit e1505c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,4 +859,4 @@ static int __init bpf_offload_init(void)
859859
return rhashtable_init(&offdevs, &offdevs_params);
860860
}
861861

862-
late_initcall(bpf_offload_init);
862+
core_initcall(bpf_offload_init);

0 commit comments

Comments
 (0)