selftests/bpf: Export map_update_retriable()
authorHou Tao <houtao1@huawei.com>
Wed, 1 Nov 2023 03:24:54 +0000 (11:24 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Nov 2023 02:58:40 +0000 (18:58 -0800)
commitb9b79553163788d3fc42e25c2662c0a46dc9a3c5
tree91c95c77cc400268ee2518600f1add72c9f0357f
parentd79924ca579c647d5dc55f605899c98f7ea04d0f
selftests/bpf: Export map_update_retriable()

Export map_update_retriable() to make it usable for other map_test
cases. These cases may only need retry for specific errno, so add
a new callback parameter to let map_update_retriable() decide whether or
not the errno is retriable.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231101032455.3808547-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_maps.h