HomeSort by relevance Sort by last modified time
    Searched refs:next_key_p (Results 1 - 2 of 2) sorted by null

  /external/linux-kselftest/tools/testing/selftests/bpf/
test_lpm_map.c 528 struct bpf_lpm_trie_key *key_p, *next_key_p; local
535 next_key_p = alloca(key_size);
555 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -1 &&
574 memset(next_key_p, 0, key_size);
575 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == 0);
576 assert(next_key_p->prefixlen == 16 && next_key_p->data[0] == 192 &&
577 next_key_p->data[1] == 168);
579 memcpy(key_p, next_key_p, key_size);
580 assert(bpf_map_get_next_key(map_fd, key_p, next_key_p) == -1 &
685 struct bpf_lpm_trie_key *next_key_p = alloca(key_size); local
    [all...]
test_progs.c 911 __u32 key, next_key, *cur_key_p, *next_key_p; local
918 next_key_p = &key;
919 while (bpf_map_get_next_key(smap_fd, cur_key_p, next_key_p) == 0) {
920 err = bpf_map_lookup_elem(smap_fd, next_key_p, val_buf1);
923 err = bpf_map_lookup_elem(amap_fd, next_key_p, val_buf2);
932 key = *next_key_p;
934 next_key_p = &next_key;
    [all...]

Completed in 95 milliseconds