Searched refs:sockmap (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | verifier_sockmap_mutate.c | 34 } sockmap SEC(".maps"); 42 bpf_map_delete_elem(&sockmap, &zero); in test_sockmap_delete() 49 bpf_map_update_elem(&sockmap, &zero, sk, BPF_ANY); in test_sockmap_update() 56 struct bpf_sock *sk = bpf_map_lookup_elem(&sockmap, &zero); in test_sockmap_lookup_and_update() 176 bpf_sock_map_update(ctx, &sockmap, &zero, BPF_ANY); in test_sockops_update_dedicated()
|
D | bpf_iter_sockmap.c | 16 } sockmap SEC(".maps");
|
D | map_ptr_kern.c | 442 struct bpf_stab *sockmap = (struct bpf_stab *)&m_sockmap; in check_sockmap() local 445 VERIFY(check_default(&sockmap->map, map)); in check_sockmap()
|
/linux-6.12.1/Documentation/bpf/ |
D | map_sockmap.rst | 268 Look up a socket entry in the sockmap or sockhash map. 278 Add or update a socket entry in a sockmap or sockhash. 294 Delete a socket entry from a sockmap or a sockhash. 307 function. The ``key`` parameter is the index value of the sockmap array. And the 310 Under the hood, the sockmap update function uses the socket FD value to 346 Several examples of the use of sockmap APIs can be found in: 354 The following code snippet shows how to declare a sockmap. 376 sockmap to redirect traffic to another socket based on the local port. 437 Several examples of the use of sockmap APIs can be found in: 443 The following code sample shows how to create a sockmap, attach a parser and [all …]
|
/linux-6.12.1/include/linux/ |
D | bpf_types.h | 149 BPF_LINK_TYPE(BPF_LINK_TYPE_SOCKMAP, sockmap)
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | link.c | 530 jsonw_uint_field(json_wtr, "map_id", info->sockmap.map_id); in show_link_close_json() 531 show_link_attach_type_json(info->sockmap.attach_type, json_wtr); in show_link_close_json() 924 printf("map_id %u ", info->sockmap.map_id); in show_link_close_plain() 925 show_link_attach_type_plain(info->sockmap.attach_type); in show_link_close_plain()
|
/linux-6.12.1/net/core/ |
D | sock_map.c | 711 DEFINE_BPF_ITER_FUNC(sockmap, struct bpf_iter_meta *meta, in DEFINE_BPF_ITER_FUNC() argument 1813 info->sockmap.map_id = map_id; in sock_map_link_fill_info() 1814 info->sockmap.attach_type = sockmap_link->attach_type; in sock_map_link_fill_info()
|
/linux-6.12.1/tools/bpf/bpftool/Documentation/ |
D | bpftool-map.rst | 55 | | **devmap** | **devmap_hash** | **sockmap** | **cpumap** | **xskmap** | **sockhash**
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_basic.c | 266 src = skel->maps.sockmap; in test_sockmap_copy()
|
D | bpf_iter.c | 1561 do_read_map_iter_fd(&skel->skeleton, skel->progs.copy, skel->maps.sockmap); in test_bpf_sockmap_map_iter_fd()
|
/linux-6.12.1/include/uapi/linux/ |
D | bpf.h | 6740 } sockmap; member
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | bpf.h | 6740 } sockmap; member
|
/linux-6.12.1/ |
D | MAINTAINERS | 4214 BPF [L7 FRAMEWORK] (sockmap)
|