Home
last modified time | relevance | path

Searched refs:next_key_p (Results 1 – 2 of 2) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_lpm_map.c580 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
598 assert(next_key_p->prefixlen == 24 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
599 next_key_p->data[1] == 168 && next_key_p->data[2] == 128); in test_lpm_get_next_key()
603 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
621 assert(next_key_p->prefixlen == 24 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
622 next_key_p->data[1] == 168 && next_key_p->data[2] == 1); in test_lpm_get_next_key()
627 next_key_p->data[1] == 168 && next_key_p->data[2] == 128); in test_lpm_get_next_key()
650 next_key_p->data[1] == 168 && next_key_p->data[2] == 1 && in test_lpm_get_next_key()
656 next_key_p->data[1] == 168 && next_key_p->data[2] == 1); in test_lpm_get_next_key()
661 next_key_p->data[1] == 168 && next_key_p->data[2] == 128); in test_lpm_get_next_key()
[all …]
A Dtest_progs.c560 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local
567 next_key_p = &key; in compare_stack_ips()
568 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) { in compare_stack_ips()
569 err = bpf_map_lookup_elem(smap_fd, next_key_p, val_buf1); in compare_stack_ips()
572 err = bpf_map_lookup_elem(amap_fd, next_key_p, val_buf2); in compare_stack_ips()
581 key = *next_key_p; in compare_stack_ips()
583 next_key_p = &next_key; in compare_stack_ips()

Completed in 6 milliseconds