Searched refs:bpf_net_ctx (Results 1 – 6 of 6) sorted by relevance
| /linux/include/linux/ |
| H A D | filter.h | 898 static inline struct bpf_net_context *bpf_net_ctx_set(struct bpf_net_context *bpf_net_ctx) in bpf_net_ctx_get_ri() 904 bpf_net_ctx->ri.kern_flags = 0; 906 tsk->bpf_net_context = bpf_net_ctx; in bpf_net_ctx_get_cpu_map_flush_list() 907 return bpf_net_ctx; in bpf_net_ctx_get_cpu_map_flush_list() local 910 static inline void bpf_net_ctx_clear(struct bpf_net_context *bpf_net_ctx) in bpf_net_ctx_get_cpu_map_flush_list() 912 if (bpf_net_ctx) in bpf_net_ctx_get_cpu_map_flush_list() 923 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); in bpf_net_ctx_get_dev_flush_list() 925 if (!(bpf_net_ctx->ri.kern_flags & BPF_RI_F_RI_INIT)) { in bpf_net_ctx_get_dev_flush_list() 926 memset(&bpf_net_ctx->ri, 0, offsetof(struct bpf_net_context, ri.nh)); in bpf_net_ctx_get_dev_flush_list() 927 bpf_net_ctx in bpf_net_ctx_get_dev_flush_list() 870 bpf_net_ctx_set(struct bpf_net_context * bpf_net_ctx) bpf_net_ctx_set() argument 882 bpf_net_ctx_clear(struct bpf_net_context * bpf_net_ctx) bpf_net_ctx_clear() argument 895 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); bpf_net_ctx_get_ri() local 919 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); bpf_net_ctx_get_dev_flush_list() local 931 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); bpf_net_ctx_get_xskmap_flush_list() local 945 struct bpf_net_context *bpf_net_ctx = bpf_net_ctx_get(); bpf_net_ctx_get_all_used_flush_lists() local [all...] |
| /linux/net/core/ |
| H A 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()
|
| H A D | dev.c | 4654 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; 4660 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in sch_handle_ingress() 4689 bpf_net_ctx_clear(bpf_net_ctx); in __get_xps_queue_idx() 4694 bpf_net_ctx_clear(bpf_net_ctx); in __get_xps_queue_idx() 4704 bpf_net_ctx_clear(bpf_net_ctx); in get_xps_queue() 4707 bpf_net_ctx_clear(bpf_net_ctx); in get_xps_queue() 4717 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in get_xps_queue() 4723 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in get_xps_queue() 4740 bpf_net_ctx_clear(bpf_net_ctx); in dev_pick_tx_zero() 4745 bpf_net_ctx_clear(bpf_net_ctx); 4546 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; sch_handle_ingress() local 4609 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; sch_handle_egress() local 5753 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; do_xdp_generic() local 6978 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; busy_poll_stop() local 7038 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; __napi_busy_loop() local 7936 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; napi_threaded_poll_loop() local 8016 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; net_rx_action() local [all...] |
| /linux/kernel/bpf/ |
| H A D | cpumap.c | 264 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in cpu_map_bpf_prog_run() 270 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in cpu_map_bpf_prog_run() 282 bpf_net_ctx_clear(bpf_net_ctx); in cpu_map_gro_flush() 254 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; cpu_map_bpf_prog_run() local
|
| /linux/net/bpf/ |
| H A D | test_run.c | 276 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in xdp_test_run_batch() local 289 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in xdp_test_run_batch() 355 bpf_net_ctx_clear(bpf_net_ctx); in xdp_test_run_batch() 391 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in bpf_test_run() local 417 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in bpf_test_run() 424 bpf_net_ctx_clear(bpf_net_ctx); in bpf_test_run()
|
| /linux/drivers/net/ |
| H A D | tun.c | 1693 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in tun_build_skb() 1734 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in tun_build_skb() 1768 bpf_net_ctx_clear(bpf_net_ctx); in tun_build_skb() 1776 bpf_net_ctx_clear(bpf_net_ctx); in tun_build_skb() 2681 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; in tun_sendmsg() 2690 bpf_net_ctx = bpf_net_ctx_set(&__bpf_net_ctx); in tun_sendmsg() 2705 bpf_net_ctx_clear(bpf_net_ctx); in tun_sendmsg() 1689 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; tun_build_skb() local 2675 struct bpf_net_context __bpf_net_ctx, *bpf_net_ctx; tun_sendmsg() local
|