Home
last modified time | relevance | path

Searched refs:sock_map (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c731 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_connected() local
734 err = xbpf_prog_attach(parser, sock_map, BPF_SK_SKB_STREAM_PARSER, 0); in test_skb_redir_to_connected()
737 err = xbpf_prog_attach(verdict, sock_map, BPF_SK_SKB_STREAM_VERDICT, 0); in test_skb_redir_to_connected()
741 redir_to_connected(family, sotype, sock_map, verdict_map, in test_skb_redir_to_connected()
744 xbpf_prog_detach2(verdict, sock_map, BPF_SK_SKB_STREAM_VERDICT); in test_skb_redir_to_connected()
746 xbpf_prog_detach2(parser, sock_map, BPF_SK_SKB_STREAM_PARSER); in test_skb_redir_to_connected()
755 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_connected() local
758 err = xbpf_prog_attach(verdict, sock_map, BPF_SK_MSG_VERDICT, 0); in test_msg_redir_to_connected()
762 redir_to_connected(family, sotype, sock_map, verdict_map, REDIR_EGRESS); in test_msg_redir_to_connected()
764 xbpf_prog_detach2(verdict, sock_map, BPF_SK_MSG_VERDICT); in test_msg_redir_to_connected()
[all …]
H A Dsk_lookup.c69 struct bpf_map *sock_map; member
556 err = update_lookup_map(t->sock_map, i, server_fds[i]); in run_lookup_prog()
612 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
620 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
629 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
639 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
648 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
656 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
664 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
673 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
[all …]
H A Dnetns_cookie.c40 map = bpf_map__fd(skel->maps.sock_map); in test_netns_cookie()
H A Dsockmap_basic.c151 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers()
179 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers_with_link()
374 map = bpf_map__fd(skel->maps.sock_map); in test_sockmap_skb_verdict_attach()
401 map = bpf_map__fd(skel->maps.sock_map); in test_sockmap_skb_verdict_attach_with_link()
450 map_fd = bpf_map__fd(skel->maps.sock_map); in test_sockmap_progs_query()
H A Dns_current_pid_tgid.c146 map = bpf_map__fd(skel->maps.sock_map); in test_current_pid_tgid_sk_msg()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_listen.c15 } sock_map SEC(".maps");
69 verdict = bpf_sk_redirect_map(skb, &sock_map, zero, 0); in prog_stream_verdict()
88 verdict = bpf_sk_redirect_map(skb, &sock_map, zero, in prog_skb_verdict()
109 verdict = bpf_msg_redirect_map(msg, &sock_map, zero, 0); in prog_msg_verdict()
128 err = bpf_sk_select_reuseport(reuse, &sock_map, &zero, 0); in prog_reuseport()
H A Dfreplace_cls_redirect.c15 } sock_map SEC(".maps");
24 sk = bpf_map_lookup_elem(&sock_map, &zero); in freplace_cls_redirect_test()
28 ret = bpf_map_update_elem(&sock_map, &zero, sk, 0); in freplace_cls_redirect_test()
H A Dtest_sockmap_kern.h37 } sock_map SEC(".maps");
131 return bpf_sk_redirect_map(skb, &sock_map, ret, flags); in bpf_prog2()
133 return bpf_sk_redirect_hash(skb, &sock_map, &ret, flags); in bpf_prog2()
203 bpf_sock_map_update(skops, &sock_map, &ret, in bpf_sockmap()
206 bpf_sock_hash_update(skops, &sock_map, &ret, in bpf_sockmap()
218 bpf_sock_map_update(skops, &sock_map, &ret, in bpf_sockmap()
221 bpf_sock_hash_update(skops, &sock_map, &ret, in bpf_sockmap()
H A Dnetns_cookie_prog.c28 } sock_map SEC(".maps");
55 bpf_sock_map_update(ctx, &sock_map, &key, BPF_NOEXIST); in get_netns_cookie_sockops()
H A Dtest_sockmap_skb_verdict_attach.c10 } sock_map SEC(".maps");
H A Dtest_sockmap_progs_query.c10 } sock_map SEC(".maps");
H A Dtest_ns_current_pid_tgid.c13 } sock_map SEC(".maps");
H A Dtest_skmsg_load_helpers.c11 } sock_map SEC(".maps");
/linux/net/core/
H A DMakefile43 obj-$(CONFIG_BPF_SYSCALL) += sock_map.o
/linux/Documentation/bpf/
H A Dmap_of_maps.rst15 ``array_of_maps->sock_map``.
/linux/drivers/xen/
H A Dpvcalls-back.c87 static irqreturn_t pvcalls_back_conn_event(int irq, void *sock_map);
909 static irqreturn_t pvcalls_back_conn_event(int irq, void *sock_map) in pvcalls_back_conn_event() argument
911 struct sock_mapping *map = sock_map; in pvcalls_back_conn_event()
H A Dpvcalls-front.c258 static irqreturn_t pvcalls_front_conn_handler(int irq, void *sock_map) in pvcalls_front_conn_handler() argument
260 struct sock_mapping *map = sock_map; in pvcalls_front_conn_handler()
/linux/
H A DMAINTAINERS4287 F: net/core/sock_map.c