Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c734 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_connected() local
758 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_connected() local
836 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_listening() local
860 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_listening() local
892 err = add_to_sockmap(sock_map, p0, p1); in redir_partial()
925 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_partial() local
944 int sock_map, int verd_map, in test_reuseport_select_listening() argument
1013 int sock_map, int verd_map, in test_reuseport_select_connected() argument
1398 int sock_map = bpf_map__fd(inner_map); in unix_skb_redir_to_connected() local
1549 int sock_map = bpf_map__fd(inner_map); in vsock_unix_skb_redir_connectible() local
[all …]
H A Dsk_lookup.c71 struct bpf_map *sock_map; member
676 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
684 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
693 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
703 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
712 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
720 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
728 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
737 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
747 .sock_map = skel->maps.redir_map, in test_redirect_lookup()
[all …]
H A Dnetns_cookie.c36 map = bpf_map__fd(skel->maps.sock_map); in test_netns_cookie()
H A Dsockmap_basic.c121 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers()
285 map = bpf_map__fd(skel->maps.sock_map); in test_sockmap_skb_verdict_attach()
327 map_fd = bpf_map__fd(skel->maps.sock_map); in test_sockmap_progs_query()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_listen.c15 } sock_map SEC(".maps");
62 verdict = bpf_sk_redirect_map(skb, &sock_map, zero, 0); in prog_stream_verdict()
81 verdict = bpf_sk_redirect_map(skb, &sock_map, zero, in prog_skb_verdict()
102 verdict = bpf_msg_redirect_map(msg, &sock_map, zero, 0); in prog_msg_verdict()
121 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()
206 bpf_sock_map_update(skops, &sock_map, &ret, in bpf_sockmap()
209 bpf_sock_hash_update(skops, &sock_map, &ret, in bpf_sockmap()
221 bpf_sock_map_update(skops, &sock_map, &ret, in bpf_sockmap()
224 bpf_sock_hash_update(skops, &sock_map, &ret, in bpf_sockmap()
H A Dnetns_cookie_prog.c28 } sock_map SEC(".maps");
53 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_skmsg_load_helpers.c11 } sock_map SEC(".maps");
/openbmc/linux/net/core/
H A DMakefile40 obj-$(CONFIG_BPF_SYSCALL) += sock_map.o
/openbmc/linux/Documentation/bpf/
H A Dmap_of_maps.rst15 ``array_of_maps->sock_map``.
/openbmc/linux/drivers/xen/
H A Dpvcalls-back.c87 static irqreturn_t pvcalls_back_conn_event(int irq, void *sock_map);
905 static irqreturn_t pvcalls_back_conn_event(int irq, void *sock_map) in pvcalls_back_conn_event() argument
907 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()
/openbmc/linux/
H A DMAINTAINERS3803 F: net/core/sock_map.c