Searched refs:next_key_p (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | lpm_trie_map_basic_ops.c | 553 struct bpf_lpm_trie_key_u8 *key_p, *next_key_p; in test_lpm_get_next_key() local 560 next_key_p = alloca(key_size); in test_lpm_get_next_key() 578 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -ENOENT); in test_lpm_get_next_key() 596 memset(next_key_p, 0, key_size); in test_lpm_get_next_key() 597 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0); in test_lpm_get_next_key() 598 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key() 599 next_key_p->data[1] == 168); in test_lpm_get_next_key() 601 memcpy(key_p, next_key_p, key_size); in test_lpm_get_next_key() 602 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -ENOENT); in test_lpm_get_next_key() 614 memset(next_key_p, 0, key_size); in test_lpm_get_next_key() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_progs.c | 701 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() 708 next_key_p = &key; in compare_stack_ips() 709 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) { in compare_stack_ips() 710 err = bpf_map_lookup_elem(smap_fd, next_key_p, val_buf1); in compare_stack_ips() 713 err = bpf_map_lookup_elem(amap_fd, next_key_p, val_buf2); in compare_stack_ips() 722 key = *next_key_p; in compare_stack_ips() 724 next_key_p = &next_key; in compare_stack_ips() 702 __u32 key, next_key, *cur_key_p, *next_key_p; compare_stack_ips() local
|