Home
last modified time | relevance | path

Searched refs:reuseport_array (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/kernel/bpf/
Dreuseport_array.c11 struct reuseport_array { struct
16 static struct reuseport_array *reuseport_array(struct bpf_map *map) in reuseport_array() argument
18 return (struct reuseport_array *)map; in reuseport_array()
55 struct reuseport_array *array = reuseport_array(map); in reuseport_array_lookup_elem()
67 struct reuseport_array *array = reuseport_array(map); in reuseport_array_delete_elem()
99 struct reuseport_array *array = reuseport_array(map); in reuseport_array_free()
155 struct reuseport_array *array; in reuseport_array_alloc()
194 reuseport_array_update_check(const struct reuseport_array *array, in reuseport_array_update_check()
241 struct reuseport_array *array = reuseport_array(map); in bpf_fd_reuseport_array_update_elem()
325 struct reuseport_array *array = reuseport_array(map); in reuseport_array_get_next_key()
[all …]
DMakefile29 obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o
/linux-5.19.10/tools/testing/selftests/bpf/progs/
Dtest_select_reuseport_kern.c71 void *reuseport_array; in _select_by_skb_data() local
149 reuseport_array = bpf_map_lookup_elem(&outer_map, &index_zero); in _select_by_skb_data()
150 if (!reuseport_array) in _select_by_skb_data()
162 err = bpf_sk_select_reuseport(reuse_md, reuseport_array, &index, in _select_by_skb_data()
Dmap_ptr_kern.c530 struct reuseport_array { struct
543 struct reuseport_array *reuseport_sockarray = in check_reuseport_sockarray() argument
544 (struct reuseport_array *)&m_reuseport_sockarray; in check_reuseport_sockarray()
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dselect_reuseport.c37 static int reuseport_array = -1, outer_map = -1; variable
73 reuseport_array = bpf_map_create(inner_type, "reuseport_array", in create_maps()
75 RET_ERR(reuseport_array < 0, "creating reuseport_array", in create_maps()
76 "reuseport_array:%d errno:%d\n", reuseport_array, errno); in create_maps()
79 opts.inner_map_fd = reuseport_array; in create_maps()
641 err = bpf_map_update_elem(reuseport_array, &i, &sk_fds[i], in prepare_sk_fds()
683 err = bpf_map_update_elem(outer_map, &index_zero, &reuseport_array, in setup_per_test()
725 if (reuseport_array >= 0) { in cleanup()
726 close(reuseport_array); in cleanup()
727 reuseport_array = -1; in cleanup()