bpf: netdev: init the offload table earlier
PATCH 1/1 bpf: netdev: init the offload table earlier
Some netdevices may get unregistered before late_initcall(), we have to move the hashtable init earlier.
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- kernel/bpf/offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bpf/offload.c +1 -1
@@ -859,4 +859,4 @@ static int __init bpf_offload_init(void)return rhashtable_init (&offdevs, &offdevs_params); } -late_initcall (bpf_offload_init); +core_initcall (bpf_offload_init);
Signature · 1 line
2.40.1
Quoted 7 lines · Jakub Kicinski
Some netdevices may get unregistered before
late_initcall(), we have to move the hashtable init earlier.Fixes f1fc43d03946 ("bpf: Move offload initialization into late_initcall")Signed-off-by Jakub Kicinski <[email protected]>
Make sense, thank you!
Quoted 30 lines
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]--- kernel/bpf/offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/bpf/offload.c +1
-2@@ -859,4 +859,4 @@ static int __init bpf_offload_init(void)return rhashtable_init (&offdevs, &offdevs_params); } -late_initcall (bpf_offload_init); +core_initcall (bpf_offload_init); --2.40.1