Home
last modified time | relevance | path

Searched refs:next_key_p (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_lpm_map.c538 struct bpf_lpm_trie_key *key_p, *next_key_p; in test_lpm_get_next_key() local
545 next_key_p = alloca(key_size); in test_lpm_get_next_key()
565 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -1 && in test_lpm_get_next_key()
584 memset(next_key_p, 0, key_size); in test_lpm_get_next_key()
585 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
586 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
587 next_key_p->data[1] == 168); in test_lpm_get_next_key()
589 memcpy(key_p, next_key_p, key_size); in test_lpm_get_next_key()
590 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) in test_lpm_get_next_key()
730 struct bpf_lpm_trie_key *next_key_p = alloca(key_size); lpm_test_command() local
[all...]
H A Dtest_progs.c304 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local
311 next_key_p = &key; in compare_stack_ips()
312 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) { in compare_stack_ips()
313 err = bpf_map_lookup_elem(smap_fd, next_key_p, val_buf1); in compare_stack_ips()
316 err = bpf_map_lookup_elem(amap_fd, next_key_p, val_buf2); in compare_stack_ips()
325 key = *next_key_p; in compare_stack_ips()
327 next_key_p = &next_key; in compare_stack_ips()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_lpm_map.c535 struct bpf_lpm_trie_key *key_p, *next_key_p; in test_lpm_get_next_key() local
542 next_key_p = alloca(key_size); in test_lpm_get_next_key()
560 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -ENOENT); in test_lpm_get_next_key()
578 memset(next_key_p, 0, key_size); in test_lpm_get_next_key()
579 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key()
580 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
581 next_key_p->data[1] == 168); in test_lpm_get_next_key()
583 memcpy(key_p, next_key_p, key_size); in test_lpm_get_next_key()
584 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) in test_lpm_get_next_key()
720 struct bpf_lpm_trie_key *next_key_p = alloca(key_size); lpm_test_command() local
[all...]
H A Dtest_progs.c597 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local
604 next_key_p = &key; in compare_stack_ips()
605 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) { in compare_stack_ips()
606 err = bpf_map_lookup_elem(smap_fd, next_key_p, val_buf1); in compare_stack_ips()
609 err = bpf_map_lookup_elem(amap_fd, next_key_p, val_buf2); in compare_stack_ips()
618 key = *next_key_p; in compare_stack_ips()
620 next_key_p = &next_key; in compare_stack_ips()

Completed in 5 milliseconds