Home
last modified time | relevance | path

Searched refs:BPF_MAP_TYPE_SOCKMAP (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_pass_prog.c6 __uint(type, BPF_MAP_TYPE_SOCKMAP);
13 __uint(type, BPF_MAP_TYPE_SOCKMAP);
20 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sockmap_drop_prog.c6 __uint(type, BPF_MAP_TYPE_SOCKMAP);
13 __uint(type, BPF_MAP_TYPE_SOCKMAP);
20 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dsockmap_verdict_prog.c7 __uint(type, BPF_MAP_TYPE_SOCKMAP);
14 __uint(type, BPF_MAP_TYPE_SOCKMAP);
21 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sockmap_update.c7 __uint(type, BPF_MAP_TYPE_SOCKMAP);
14 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sockmap_kern.c4 #define TEST_MAP_TYPE BPF_MAP_TYPE_SOCKMAP
H A Dtest_sockmap_skb_verdict_attach.c6 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sockmap_progs_query.c6 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sockmap_invalid_update.c7 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dfreplace_cls_redirect.c11 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sk_assign.c23 __uint(type, BPF_MAP_TYPE_SOCKMAP);
43 .type = BPF_MAP_TYPE_SOCKMAP,
H A Dbpf_iter_sockmap.c12 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_skmsg_load_helpers.c7 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dnetns_cookie_prog.c24 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sockmap_listen.c11 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_assign_reuse.c27 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dmap_ptr_kern.c434 __uint(type, BPF_MAP_TYPE_SOCKMAP);
685 VERIFY_TYPE(BPF_MAP_TYPE_SOCKMAP, check_sockmap); in cg_skb()
H A Dverifier_sock.c27 __uint(type, BPF_MAP_TYPE_SOCKMAP);
H A Dtest_sk_lookup.c36 __uint(type, BPF_MAP_TYPE_SOCKMAP);
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_ktls.c138 const char *map_type_str = BPF_MAP_TYPE_SOCKMAP ? "SOCKMAP" : "SOCKHASH"; in fmt_test_name()
167 run_tests(AF_INET, BPF_MAP_TYPE_SOCKMAP); in test_sockmap_ktls()
169 run_tests(AF_INET6, BPF_MAP_TYPE_SOCKMAP); in test_sockmap_ktls()
H A Dsockmap_basic.c158 if (map_type == BPF_MAP_TYPE_SOCKMAP) in test_sockmap_update()
206 if (map_type == BPF_MAP_TYPE_SOCKMAP) { in test_sockmap_copy()
530 test_sockmap_create_update_free(BPF_MAP_TYPE_SOCKMAP); in test_sockmap_basic()
534 test_skmsg_helpers(BPF_MAP_TYPE_SOCKMAP); in test_sockmap_basic()
538 test_sockmap_update(BPF_MAP_TYPE_SOCKMAP); in test_sockmap_basic()
544 test_sockmap_copy(BPF_MAP_TYPE_SOCKMAP); in test_sockmap_basic()
H A Dselect_reuseport.c743 case BPF_MAP_TYPE_SOCKMAP: in maptype_str()
866 test_map_type(BPF_MAP_TYPE_SOCKMAP); in serial_test_select_reuseport()
/openbmc/linux/Documentation/bpf/
H A Dmap_sockmap.rst5 BPF_MAP_TYPE_SOCKMAP and BPF_MAP_TYPE_SOCKHASH
9 - ``BPF_MAP_TYPE_SOCKMAP`` was introduced in kernel version 4.14
12 ``BPF_MAP_TYPE_SOCKMAP`` and ``BPF_MAP_TYPE_SOCKHASH`` maps can be used to
18 ``BPF_MAP_TYPE_SOCKMAP`` is backed by an array that uses an integer key as the
92 ``BPF_MAP_TYPE_SOCKMAP``) at index ``key``. Both ingress and egress interfaces
106 ``BPF_MAP_TYPE_SOCKMAP``) at index ``key``. Both ingress and egress interfaces
359 __uint(type, BPF_MAP_TYPE_SOCKMAP);
453 map = bpf_map_create(BPF_MAP_TYPE_SOCKMAP, NULL, sizeof(int), sizeof(int), 1, NULL);
/openbmc/linux/include/linux/
H A Dbpf_types.h122 BPF_MAP_TYPE(BPF_MAP_TYPE_SOCKMAP, sock_map_ops)
/openbmc/linux/net/core/
H A Dsock_map.c578 else if (map->map_type == BPF_MAP_TYPE_SOCKMAP) in sock_map_update_elem_sys()
604 else if (map->map_type == BPF_MAP_TYPE_SOCKMAP) in sock_map_update_elem()
1455 case BPF_MAP_TYPE_SOCKMAP: in sock_map_progs()
1571 case BPF_MAP_TYPE_SOCKMAP: in sock_map_unlink()
1687 if (map->map_type != BPF_MAP_TYPE_SOCKMAP && in sock_map_iter_attach_target()
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf_probes.c348 case BPF_MAP_TYPE_SOCKMAP: in probe_map_create()

12