/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sockmap_pass_prog.c | 6 __uint(type, BPF_MAP_TYPE_SOCKMAP); 13 __uint(type, BPF_MAP_TYPE_SOCKMAP); 20 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sockmap_drop_prog.c | 6 __uint(type, BPF_MAP_TYPE_SOCKMAP); 13 __uint(type, BPF_MAP_TYPE_SOCKMAP); 20 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | sockmap_verdict_prog.c | 7 __uint(type, BPF_MAP_TYPE_SOCKMAP); 14 __uint(type, BPF_MAP_TYPE_SOCKMAP); 21 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sockmap_update.c | 7 __uint(type, BPF_MAP_TYPE_SOCKMAP); 14 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sockmap_kern.c | 4 #define TEST_MAP_TYPE BPF_MAP_TYPE_SOCKMAP
|
H A D | test_sockmap_skb_verdict_attach.c | 6 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sockmap_progs_query.c | 6 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sockmap_invalid_update.c | 7 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | freplace_cls_redirect.c | 11 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sk_assign.c | 23 __uint(type, BPF_MAP_TYPE_SOCKMAP); 43 .type = BPF_MAP_TYPE_SOCKMAP,
|
H A D | bpf_iter_sockmap.c | 12 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_skmsg_load_helpers.c | 7 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | netns_cookie_prog.c | 24 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sockmap_listen.c | 11 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_assign_reuse.c | 27 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | map_ptr_kern.c | 434 __uint(type, BPF_MAP_TYPE_SOCKMAP); 685 VERIFY_TYPE(BPF_MAP_TYPE_SOCKMAP, check_sockmap); in cg_skb()
|
H A D | verifier_sock.c | 27 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
H A D | test_sk_lookup.c | 36 __uint(type, BPF_MAP_TYPE_SOCKMAP);
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_ktls.c | 138 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 D | sockmap_basic.c | 158 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 D | select_reuseport.c | 743 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 D | map_sockmap.rst | 5 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 D | bpf_types.h | 122 BPF_MAP_TYPE(BPF_MAP_TYPE_SOCKMAP, sock_map_ops)
|
/openbmc/linux/net/core/ |
H A D | sock_map.c | 578 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 D | libbpf_probes.c | 348 case BPF_MAP_TYPE_SOCKMAP: in probe_map_create()
|