Skip to content

Commit 9d431aa

Browse files
committed
bpf: netdev: init the offload table earlier
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2178930 commit e1505c1 Author: Jakub Kicinski <kuba@kernel.org> Date: Fri May 5 14:58:36 2023 -0700 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> Signed-off-by: Felix Maurer <fmaurer@redhat.com>
1 parent c55c3ac commit 9d431aa

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
@@ -853,4 +853,4 @@ static int __init bpf_offload_init(void)
853853
return rhashtable_init(&offdevs, &offdevs_params);
854854
}
855855

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

0 commit comments

Comments
 (0)