Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3#ifndef __PROGS_LPM_TRIE_H
4#define __PROGS_LPM_TRIE_H
5
6struct trie_key {
7 __u32 prefixlen;
8 __u32 data;
9};
10
11/* Benchmark operations */
12enum {
13 LPM_OP_NOOP = 0,
14 LPM_OP_BASELINE,
15 LPM_OP_LOOKUP,
16 LPM_OP_INSERT,
17 LPM_OP_UPDATE,
18 LPM_OP_DELETE,
19 LPM_OP_FREE
20};
21
22/*
23 * Return values from run_bench.
24 *
25 * Negative values are also allowed and represent kernel error codes.
26 */
27#define LPM_BENCH_SUCCESS 0
28#define LPM_BENCH_REINIT_MAP 1 /* Reset trie to initial state for current op */
29
30#endif