Searched refs:BPF_EXIST (Results 1 - 24 of 24) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tc_edt.c58 if (bpf_map_update_elem(&flow_map, &key, &next_tstamp, BPF_EXIST))
/linux-master/kernel/bpf/
H A Dreuseport_array.c197 if (!osk && map_flags == BPF_EXIST)
243 if (map_flags > BPF_EXIST)
H A Dqueue_stack_maps.c197 /* 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 Dlocal_storage.c150 if (unlikely(flags & ~(BPF_F_LOCK | BPF_EXIST)))
219 if (map_flags != BPF_ANY && map_flags != BPF_EXIST)
H A Dbpf_local_storage.c441 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 Dhashtab.c1086 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 Ddevmap.c914 if (unlikely(map_flags > BPF_EXIST))
968 if (unlikely(map_flags > BPF_EXIST || !val.ifindex))
H A Dlpm_trie.c318 if (unlikely(flags > BPF_EXIST))
H A Dcpumap.c539 if (unlikely(map_flags > BPF_EXIST))
H A Darraymap.c317 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST))
358 if (unlikely(map_flags > BPF_EXIST))
H A Doffload.c601 if (unlikely(flags > BPF_EXIST))
/linux-master/tools/testing/selftests/bpf/
H A Dtest_maps.c77 /* 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 Dtest_lru_map.c189 /* 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 Dxskmap.c172 if (unlikely(map_flags > BPF_EXIST))
203 } else if (!old_xs && map_flags == BPF_EXIST) {
/linux-master/samples/bpf/
H A Dtest_lru_dist.c147 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 Dbloom_filter_map.c49 err = bpf_map_update_elem(fd, NULL, &value, BPF_EXIST);
H A Dsockmap_listen.c263 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 Dsk_storage_map.c491 /* 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 Dsock_map.c477 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 Dbpf.c423 if (idx < 0 && flags == BPF_EXIST) {
/linux-master/tools/perf/util/
H A Dbpf_lock_contention.c237 bpf_map_update_elem(map_fd, &stat_key, &stat_data, BPF_EXIST);
/linux-master/include/uapi/linux/
H A Dbpf.h197 * **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 Dbpf.h197 * **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 Dmap.c440 *flags = BPF_EXIST;

Completed in 394 milliseconds