Searched refs:reuseport_array (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/kernel/bpf/ |
D | reuseport_array.c | 10 struct reuseport_array { struct 15 static struct reuseport_array *reuseport_array(struct bpf_map *map) in reuseport_array() argument 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() 205 reuseport_array_update_check(const struct reuseport_array *array, in reuseport_array_update_check() 252 struct reuseport_array *array = reuseport_array(map); in bpf_fd_reuseport_array_update_elem() 336 struct reuseport_array *array = reuseport_array(map); in reuseport_array_get_next_key()
|
D | Makefile | 29 obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_select_reuseport_kern.c | 73 void *reuseport_array; in _select_by_skb_data() local 151 reuseport_array = bpf_map_lookup_elem(&outer_map, &index_zero); in _select_by_skb_data() 152 if (!reuseport_array) in _select_by_skb_data() 164 err = bpf_sk_select_reuseport(reuse_md, reuseport_array, &index, in _select_by_skb_data()
|
D | map_ptr_kern.c | 524 struct reuseport_array { struct 537 struct reuseport_array *reuseport_sockarray = in check_reuseport_sockarray() argument 538 (struct reuseport_array *)&m_reuseport_sockarray; in check_reuseport_sockarray()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | select_reuseport.c | 38 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 == -1, "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() 650 err = bpf_map_update_elem(reuseport_array, &i, &sk_fds[i], in prepare_sk_fds() 692 err = bpf_map_update_elem(outer_map, &index_zero, &reuseport_array, in setup_per_test() 734 if (reuseport_array != -1) { in cleanup() 735 close(reuseport_array); in cleanup() 736 reuseport_array = -1; in cleanup()
|