/Linux-v6.6/Documentation/bpf/ |
D | map_queue_stack.rst | 40 ``BPF_ANY`` or ``BPF_EXIST``. If ``flags`` is set to ``BPF_EXIST`` then, 79 ``NULL`` and ``flags`` must be set to ``BPF_ANY`` or ``BPF_EXIST``, with the
|
D | map_sockmap.rst | 134 - ``BPF_EXIST``: Update an existing element. 155 - ``BPF_EXIST``: Update an existing element. 284 - BPF_EXIST: Update an existing element. 317 - BPF_EXIST: Update an existing element.
|
D | map_sk_storage.rst | 82 - ``BPF_EXIST`` will update existing storage for `socket` ``fd`` if it already
|
D | map_cpumap.rst | 76 - BPF_EXIST: Update an existing element.
|
D | map_lru_hash_update.dot | 138 fn_htab_lru_map_update_elem_EEXIST [xlabel="BPF_EXIST set and\nkey already exists"]
|
D | map_lpm_trie.rst | 69 The flags parameter must be one of BPF_ANY, BPF_NOEXIST or BPF_EXIST,
|
D | map_xskmap.rst | 109 - BPF_EXIST: Update an existing element.
|
D | map_devmap.rst | 102 - ``BPF_EXIST``: Update an existing element.
|
D | map_hash.rst | 64 - ``BPF_EXIST`` will update an existing element
|
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | test_maps.c | 78 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_hashmap() 94 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); in test_hashmap() 207 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) < 0 && in test_hashmap_percpu() 248 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); in test_hashmap_percpu() 311 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); in test_hashmap_walk() 392 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_arraymap() 451 assert(bpf_map_update_elem(fd, &key, values, BPF_EXIST) < 0 && in test_arraymap_percpu() 577 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_queuemap() 633 assert(bpf_map_update_elem(fd, NULL, &vals[i], BPF_EXIST) == 0); in test_stackmap() 1027 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_EXIST); in test_sockmap() [all …]
|
D | test_lru_map.c | 190 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); in test_lru_sanity0() 369 BPF_EXIST)); in test_lru_sanity2() 716 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); in test_lru_sanity7() 805 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); in test_lru_sanity8()
|
/Linux-v6.6/kernel/bpf/ |
D | queue_stack_maps.c | 200 bool replace = (flags & BPF_EXIST); in queue_stack_map_push_elem() 203 if (flags & BPF_NOEXIST || flags > BPF_EXIST) in queue_stack_map_push_elem()
|
D | reuseport_array.c | 197 if (!osk && map_flags == BPF_EXIST) in reuseport_array_update_check() 243 if (map_flags > BPF_EXIST) in bpf_fd_reuseport_array_update_elem()
|
D | local_storage.c | 150 if (unlikely(flags & ~(BPF_F_LOCK | BPF_EXIST))) in cgroup_storage_update_elem() 219 if (map_flags != BPF_ANY && map_flags != BPF_EXIST) in bpf_percpu_cgroup_storage_update()
|
D | bpf_local_storage.c | 467 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 562 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) || in bpf_local_storage_update()
|
D | hashtab.c | 1078 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 1097 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in htab_map_update_elem() 1200 if (unlikely(map_flags > BPF_EXIST)) in htab_lru_map_update_elem() 1269 if (unlikely(map_flags > BPF_EXIST)) in __htab_percpu_map_update_elem() 1324 if (unlikely(map_flags > BPF_EXIST)) in __htab_lru_percpu_map_update_elem() 1343 if (map_flags != BPF_EXIST) { in __htab_lru_percpu_map_update_elem()
|
D | devmap.c | 903 if (unlikely(map_flags > BPF_EXIST)) in __dev_map_update_elem() 957 if (unlikely(map_flags > BPF_EXIST || !val.ifindex)) in __dev_map_hash_update_elem()
|
D | lpm_trie.c | 315 if (unlikely(flags > BPF_EXIST)) in trie_update_elem()
|
/Linux-v6.6/net/xdp/ |
D | xskmap.c | 172 if (unlikely(map_flags > BPF_EXIST)) in xsk_map_update_elem() 203 } else if (!old_xs && map_flags == BPF_EXIST) { in xsk_map_update_elem()
|
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | test_tc_edt.c | 58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST)) in throttle_flow()
|
/Linux-v6.6/samples/bpf/ |
D | test_lru_dist.c | 147 bpf_map_update_elem(lru->map_fd, &node->key, &null_node, BPF_EXIST); in pfect_lru_lookup_or_insert() 155 assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_EXIST)); in pfect_lru_lookup_or_insert()
|
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | bloom_filter_map.c | 43 err = bpf_map_update_elem(fd, NULL, &value, BPF_EXIST); in test_fail_cases()
|
/Linux-v6.6/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 495 BPF_EXIST | BPF_F_LOCK); in test_sk_storage_map_basic() 508 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_EXIST); in test_sk_storage_map_basic()
|
/Linux-v6.6/net/core/ |
D | sock_map.c | 474 if (unlikely(flags > BPF_EXIST)) in sock_map_update_common() 495 } else if (!osk && flags == BPF_EXIST) { in sock_map_update_common() 988 if (unlikely(flags > BPF_EXIST)) in sock_hash_update_common() 1010 } else if (!elem && flags == BPF_EXIST) { in sock_hash_update_common()
|
/Linux-v6.6/drivers/net/netdevsim/ |
D | bpf.c | 423 if (idx < 0 && flags == BPF_EXIST) { in nsim_map_update_elem()
|