/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_edt.c | 58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST))
|
/linux-master/kernel/bpf/ |
H A D | reuseport_array.c | 197 if (!osk && map_flags == BPF_EXIST) 243 if (map_flags > BPF_EXIST)
|
H A D | queue_stack_maps.c | 197 /* BPF_EXIST is used to force making room for a new element in case the 200 bool replace = (flags & BPF_EXIST); 203 if (flags & BPF_NOEXIST || flags > BPF_EXIST)
|
H A D | local_storage.c | 150 if (unlikely(flags & ~(BPF_F_LOCK | BPF_EXIST))) 219 if (map_flags != BPF_ANY && map_flags != BPF_EXIST)
|
H A D | bpf_local_storage.c | 441 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) 535 /* BPF_EXIST and BPF_NOEXIST cannot be both set */ 536 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) ||
|
H A D | hashtab.c | 1086 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) 1105 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) 1208 if (unlikely(map_flags > BPF_EXIST)) 1277 if (unlikely(map_flags > BPF_EXIST)) 1332 if (unlikely(map_flags > BPF_EXIST)) 1351 if (map_flags != BPF_EXIST) {
|
H A D | devmap.c | 914 if (unlikely(map_flags > BPF_EXIST)) 968 if (unlikely(map_flags > BPF_EXIST || !val.ifindex))
|
H A D | lpm_trie.c | 318 if (unlikely(flags > BPF_EXIST))
|
H A D | cpumap.c | 539 if (unlikely(map_flags > BPF_EXIST))
|
H A D | arraymap.c | 317 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) 358 if (unlikely(map_flags > BPF_EXIST))
|
H A D | offload.c | 601 if (unlikely(flags > BPF_EXIST))
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 77 /* BPF_EXIST means update existing element. */ 78 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && 94 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) == 0); 206 /* BPF_EXIST means update existing element. */ 207 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) < 0 && 246 /* Update with BPF_EXIST. */ 248 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); 311 assert(bpf_map_update_elem(fd, &key, value, BPF_EXIST) == 0); 392 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && 451 assert(bpf_map_update_elem(fd, &key, values, BPF_EXIST) < [all...] |
H A D | test_lru_map.c | 189 /* BPF_EXIST means: update existing element */ 190 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); 369 BPF_EXIST)); 715 /* BPF_EXIST means: update existing element */ 716 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); 804 /* BPF_EXIST means: update existing element */ 805 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT);
|
/linux-master/net/xdp/ |
H A D | xskmap.c | 172 if (unlikely(map_flags > BPF_EXIST)) 203 } else if (!old_xs && map_flags == BPF_EXIST) {
|
/linux-master/samples/bpf/ |
H A D | test_lru_dist.c | 147 bpf_map_update_elem(lru->map_fd, &node->key, &null_node, BPF_EXIST); 155 assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_EXIST));
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | bloom_filter_map.c | 49 err = bpf_map_update_elem(fd, NULL, &value, BPF_EXIST);
|
H A D | sockmap_listen.c | 263 xbpf_map_update_elem(mapfd, &key, &value, BPF_EXIST); 1071 err = xbpf_map_update_elem(sock_map, &key, &value, BPF_EXIST);
|
/linux-master/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 491 /* Bump the cnt and update with BPF_EXIST | BPF_F_LOCK */ 495 BPF_EXIST | BPF_F_LOCK); 496 CHECK(err, "bpf_map_update_elem(BPF_EXIST|BPF_F_LOCK)", 505 /* Bump the cnt and update with BPF_EXIST */ 508 err = bpf_map_update_elem(map_fd, &sk_fd, &value, BPF_EXIST); 509 CHECK(err, "bpf_map_update_elem(BPF_EXIST)",
|
/linux-master/net/core/ |
H A D | sock_map.c | 477 if (unlikely(flags > BPF_EXIST)) 498 } else if (!osk && flags == BPF_EXIST) { 996 if (unlikely(flags > BPF_EXIST)) 1018 } else if (!elem && flags == BPF_EXIST) {
|
/linux-master/drivers/net/netdevsim/ |
H A D | bpf.c | 423 if (idx < 0 && flags == BPF_EXIST) {
|
/linux-master/tools/perf/util/ |
H A D | bpf_lock_contention.c | 237 bpf_map_update_elem(map_fd, &stat_key, &stat_data, BPF_EXIST);
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 197 * **BPF_EXIST** 216 * If *flags* specifies **BPF_EXIST** and the element with 716 * **BPF_EXIST** 743 * If *flags* specifies **BPF_EXIST** and the element with 1350 BPF_EXIST = 2, /* update existing element */ enumerator in enum:__anon2586 1853 * **BPF_EXIST** 2956 * **BPF_EXIST** 3415 * **BPF_EXIST** 3751 * **BPF_EXIST**
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 197 * **BPF_EXIST** 216 * If *flags* specifies **BPF_EXIST** and the element with 716 * **BPF_EXIST** 743 * If *flags* specifies **BPF_EXIST** and the element with 1350 BPF_EXIST = 2, /* update existing element */ enumerator in enum:__anon3127 1853 * **BPF_EXIST** 2956 * **BPF_EXIST** 3415 * **BPF_EXIST** 3751 * **BPF_EXIST**
|
/linux-master/tools/bpf/bpftool/ |
H A D | map.c | 440 *flags = BPF_EXIST;
|