1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */
3 #include <bpf/bpf_helpers.h>
6 __uint(type
, BPF_MAP_TYPE_HASH
);
9 __uint(max_entries
, 2);
13 __uint(type
, BPF_MAP_TYPE_ARRAY
);
16 __uint(max_entries
, 2);
19 /* Sample program which should always load for testing control paths. */
26 value
= bpf_map_lookup_elem(&htab
, &key
);
29 value
= bpf_map_lookup_elem(&array
, &key64
);