Home
last modified time | relevance | path

Searched refs:bpf_net_ctx (Results 1 – 7 of 7) sorted by relevance

/linux-6.15/include/linux/
H A Dfilter.h794 bpf_net_ctx->ri.kern_flags = 0; in bpf_net_ctx_set()
796 tsk->bpf_net_context = bpf_net_ctx; in bpf_net_ctx_set()
797 return bpf_net_ctx; in bpf_net_ctx_set()
802 if (bpf_net_ctx) in bpf_net_ctx_clear()
820 return &bpf_net_ctx->ri; in bpf_net_ctx_get_ri()
832 return &bpf_net_ctx->cpu_map_flush_list; in bpf_net_ctx_get_cpu_map_flush_list()
844 return &bpf_net_ctx->dev_map_flush_list; in bpf_net_ctx_get_dev_flush_list()
856 return &bpf_net_ctx->xskmap_map_flush_list; in bpf_net_ctx_get_xskmap_flush_list()
872 lh = &bpf_net_ctx->dev_map_flush_list; in bpf_net_ctx_get_all_used_flush_lists()
876 lh = &bpf_net_ctx->cpu_map_flush_list; in bpf_net_ctx_get_all_used_flush_lists()
[all …]
/linux-6.15/net/core/
H A Dlwt_bpf.c43 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in run_lwt_bpf() local
50 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in run_lwt_bpf()
83 bpf_net_ctx_clear(bpf_net_ctx); in run_lwt_bpf()
H A Ddev.c4295 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress()
4300 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress()
4310 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress()
4313 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress()
4346 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_egress()
4351 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_egress()
4361 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_egress()
4364 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_egress()
5368 bpf_net_ctx_clear(bpf_net_ctx); in do_xdp_generic()
6615 bpf_net_ctx_clear(bpf_net_ctx); in busy_poll_stop()
[all …]
/linux-6.15/kernel/bpf/
H A Dcpumap.c251 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in cpu_map_bpf_prog_run() local
257 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in cpu_map_bpf_prog_run()
267 bpf_net_ctx_clear(bpf_net_ctx); in cpu_map_bpf_prog_run()
/linux-6.15/net/bpf/
H A Dtest_run.c288 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in xdp_test_run_batch() local
301 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in xdp_test_run_batch()
367 bpf_net_ctx_clear(bpf_net_ctx); in xdp_test_run_batch()
403 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in bpf_test_run() local
429 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in bpf_test_run()
436 bpf_net_ctx_clear(bpf_net_ctx); in bpf_test_run()
/linux-6.15/drivers/net/
H A Dnetkit.c80 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in netkit_xmit() local
88 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in netkit_xmit()
128 bpf_net_ctx_clear(bpf_net_ctx); in netkit_xmit()
H A Dtun.c1603 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in tun_build_skb() local
1644 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in tun_build_skb()
1678 bpf_net_ctx_clear(bpf_net_ctx); in tun_build_skb()
1686 bpf_net_ctx_clear(bpf_net_ctx); in tun_build_skb()
2496 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in tun_sendmsg() local
2505 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in tun_sendmsg()
2520 bpf_net_ctx_clear(bpf_net_ctx); in tun_sendmsg()