Searched refs:bpf_net_ctx (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/include/linux/ |
D | filter.h | 771 static inline struct bpf_net_context *bpf_net_ctx_set(struct bpf_net_context *bpf_net_ctx) in bpf_net_ctx_set() argument 777 bpf_net_ctx->ri.kern_flags = 0; in bpf_net_ctx_set() 779 tsk->bpf_net_context = bpf_net_ctx; in bpf_net_ctx_set() 780 return bpf_net_ctx; in bpf_net_ctx_set() 783 static inline void bpf_net_ctx_clear(struct bpf_net_context *bpf_net_ctx) in bpf_net_ctx_clear() argument 785 if (bpf_net_ctx) in bpf_net_ctx_clear() 796 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); in bpf_net_ctx_get_ri() local 798 if (!(bpf_net_ctx->ri.kern_flags & BPF_RI_F_RI_INIT)) { in bpf_net_ctx_get_ri() 799 memset(&bpf_net_ctx->ri, 0, offsetof(struct bpf_net_context, ri.nh)); in bpf_net_ctx_get_ri() 800 bpf_net_ctx->ri.kern_flags |= BPF_RI_F_RI_INIT; in bpf_net_ctx_get_ri() [all …]
|
/linux-6.12.1/net/core/ |
D | lwt_bpf.c | 42 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in run_lwt_bpf() local 49 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in run_lwt_bpf() 82 bpf_net_ctx_clear(bpf_net_ctx); in run_lwt_bpf()
|
D | dev.c | 4064 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in sch_handle_ingress() local 4070 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in sch_handle_ingress() 4099 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress() 4104 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress() 4114 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress() 4117 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_ingress() 4127 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in sch_handle_egress() local 4133 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in sch_handle_egress() 4150 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_egress() 4155 bpf_net_ctx_clear(bpf_net_ctx); in sch_handle_egress() [all …]
|
/linux-6.12.1/kernel/bpf/ |
D | cpumap.c | 241 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in cpu_map_bpf_prog_run() local 248 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in cpu_map_bpf_prog_run() 258 bpf_net_ctx_clear(bpf_net_ctx); in cpu_map_bpf_prog_run()
|
/linux-6.12.1/net/bpf/ |
D | test_run.c | 288 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.12.1/drivers/net/ |
D | netkit.c | 68 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in netkit_xmit() local 76 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in netkit_xmit() 115 bpf_net_ctx_clear(bpf_net_ctx); in netkit_xmit()
|
D | tun.c | 1665 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in tun_build_skb() local 1705 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in tun_build_skb() 1734 bpf_net_ctx_clear(bpf_net_ctx); in tun_build_skb() 1741 bpf_net_ctx_clear(bpf_net_ctx); in tun_build_skb() 2577 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in tun_sendmsg() local 2586 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in tun_sendmsg() 2601 bpf_net_ctx_clear(bpf_net_ctx); in tun_sendmsg()
|