Home
last modified time | relevance | path

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

/linux/kernel/bpf/
A Dreuseport_array.c10 struct reuseport_array { struct
15 static struct reuseport_array *reuseport_array(struct bpf_map *map) in reuseport_array() function
17 return (struct reuseport_array *)map; in reuseport_array()
54 struct reuseport_array *array = reuseport_array(map); in reuseport_array_lookup_elem()
66 struct reuseport_array *array = reuseport_array(map); in reuseport_array_delete_elem()
98 struct reuseport_array *array = reuseport_array(map); in reuseport_array_free()
154 struct reuseport_array *array; in reuseport_array_alloc()
197 reuseport_array_update_check(const struct reuseport_array *array, in reuseport_array_update_check()
244 struct reuseport_array *array = reuseport_array(map); in bpf_fd_reuseport_array_update_elem()
328 struct reuseport_array *array = reuseport_array(map); in reuseport_array_get_next_key()
A DMakefile29 obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o
/linux/tools/testing/selftests/bpf/progs/
A 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()
A Dmap_ptr_kern.c518 struct reuseport_array { struct
531 struct reuseport_array *reuseport_sockarray = in check_reuseport_sockarray() argument
532 (struct reuseport_array *)&m_reuseport_sockarray; in check_reuseport_sockarray()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dselect_reuseport.c38 static int reuseport_array = -1, outer_map = -1; variable
80 reuseport_array = bpf_create_map_xattr(&attr); in create_maps()
81 RET_ERR(reuseport_array < 0, "creating reuseport_array", in create_maps()
82 "reuseport_array:%d errno:%d\n", reuseport_array, errno); in create_maps()
90 attr.inner_map_fd = reuseport_array; in create_maps()
651 err = bpf_map_update_elem(reuseport_array, &i, &sk_fds[i], in prepare_sk_fds()
693 err = bpf_map_update_elem(outer_map, &index_zero, &reuseport_array, in setup_per_test()
735 if (reuseport_array >= 0) { in cleanup()
736 close(reuseport_array); in cleanup()
737 reuseport_array = -1; in cleanup()

Completed in 12 milliseconds