Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
A Dtest_lpm_map.c586 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
605 assert(next_key_p->prefixlen == 24 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
606 next_key_p->data[1] == 168 && next_key_p->data[2] == 128); in test_lpm_get_next_key()
610 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
629 assert(next_key_p->prefixlen == 24 && next_key_p->data[0] == 192 && in test_lpm_get_next_key()
630 next_key_p->data[1] == 168 && next_key_p->data[2] == 1); in test_lpm_get_next_key()
635 next_key_p->data[1] == 168 && next_key_p->data[2] == 128); in test_lpm_get_next_key()
659 next_key_p->data[1] == 168 && next_key_p->data[2] == 1 && in test_lpm_get_next_key()
665 next_key_p->data[1] == 168 && next_key_p->data[2] == 1); in test_lpm_get_next_key()
670 next_key_p->data[1] == 168 && next_key_p->data[2] == 128); in test_lpm_get_next_key()
[all …]
A Dtest_progs.c339 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local
346 next_key_p = &key; in compare_stack_ips()
347 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) { in compare_stack_ips()
348 err = bpf_map_lookup_elem(smap_fd, next_key_p, val_buf1); in compare_stack_ips()
351 err = bpf_map_lookup_elem(amap_fd, next_key_p, val_buf2); in compare_stack_ips()
360 key = *next_key_p; in compare_stack_ips()
362 next_key_p = &next_key; in compare_stack_ips()

Completed in 9 milliseconds