Home
last modified time | relevance | path

Searched refs:bpf_net_context (Results 1 – 5 of 5) sorted by relevance

/linux/include/linux/
H A Dfilter.h786 struct bpf_net_context { struct
793 static inline struct bpf_net_context *bpf_net_ctx_set(struct bpf_net_context *bpf_net_ctx) in bpf_net_ctx_set() argument
797 if (tsk->bpf_net_context != NULL) in bpf_net_ctx_set()
801 tsk->bpf_net_context = bpf_net_ctx; in bpf_net_ctx_set()
805 static inline void bpf_net_ctx_clear(struct bpf_net_context *bpf_net_ctx) in bpf_net_ctx_clear()
808 current->bpf_net_context = NULL; in bpf_net_ctx_clear()
811 static inline struct bpf_net_context *bpf_net_ctx_get(void) in bpf_net_ctx_get()
813 return current->bpf_net_context; in bpf_net_ctx_get()
818 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); in bpf_net_ctx_get_ri()
821 memset(&bpf_net_ctx->ri, 0, offsetof(struct bpf_net_context, ri.nh)); in bpf_net_ctx_get_ri()
[all …]
H A Dsched.h62 struct bpf_net_context;
1585 struct bpf_net_context *bpf_net_context; member
/linux/kernel/bpf/
H A Dcpumap.c249 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in cpu_map_bpf_prog_run()
/linux/net/bpf/
H A Dtest_run.c277 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in xdp_test_run_batch()
392 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in bpf_test_run()
/linux/net/core/
H A Ddev.c4423 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in sch_handle_ingress()
4486 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in sch_handle_egress()
5586 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in do_xdp_generic()
6823 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in busy_poll_stop()
6874 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in __napi_busy_loop()
7770 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in napi_threaded_poll_loop()
7847 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in net_rx_action()