/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_listen.c | 731 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 D | sk_lookup.c | 69 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 D | netns_cookie.c | 40 map = bpf_map__fd(skel->maps.sock_map); in test_netns_cookie()
|
H A D | sockmap_basic.c | 151 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 D | ns_current_pid_tgid.c | 146 map = bpf_map__fd(skel->maps.sock_map); in test_current_pid_tgid_sk_msg()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sockmap_listen.c | 15 } 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 D | freplace_cls_redirect.c | 15 } 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 D | test_sockmap_kern.h | 37 } 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 D | netns_cookie_prog.c | 28 } sock_map SEC(".maps"); 55 bpf_sock_map_update(ctx, &sock_map, &key, BPF_NOEXIST); in get_netns_cookie_sockops()
|
H A D | test_sockmap_skb_verdict_attach.c | 10 } sock_map SEC(".maps");
|
H A D | test_sockmap_progs_query.c | 10 } sock_map SEC(".maps");
|
H A D | test_ns_current_pid_tgid.c | 13 } sock_map SEC(".maps");
|
H A D | test_skmsg_load_helpers.c | 11 } sock_map SEC(".maps");
|
/linux/net/core/ |
H A D | Makefile | 43 obj-$(CONFIG_BPF_SYSCALL) += sock_map.o
|
/linux/Documentation/bpf/ |
H A D | map_of_maps.rst | 15 ``array_of_maps->sock_map``.
|
/linux/drivers/xen/ |
H A D | pvcalls-back.c | 87 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 D | pvcalls-front.c | 258 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 D | MAINTAINERS | 4287 F: net/core/sock_map.c
|