]> Git Repo - J-linux.git/blob - tools/testing/selftests/bpf/progs/test_map_in_map_invalid.c
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / tools / testing / selftests / bpf / progs / test_map_in_map_invalid.c
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2021 Isovalent, Inc. */
3 #include <linux/bpf.h>
4 #include <bpf/bpf_helpers.h>
5
6 struct inner {
7         __uint(type, BPF_MAP_TYPE_ARRAY);
8         __type(key, __u32);
9         __type(value, int);
10         __uint(max_entries, 4);
11 };
12
13 struct {
14         __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS);
15         __uint(max_entries, 0); /* This will make map creation to fail */
16         __type(key, __u32);
17         __array(values, struct inner);
18 } mim SEC(".maps");
19
20 SEC("xdp")
21 int xdp_noop0(struct xdp_md *ctx)
22 {
23         return XDP_PASS;
24 }
25
26 char _license[] SEC("license") = "GPL";
This page took 0.027901 seconds and 4 git commands to generate.