diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/spdk/dpdk/lib/librte_fib/trie.h | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/dpdk/lib/librte_fib/trie.h')
-rw-r--r-- | src/spdk/dpdk/lib/librte_fib/trie.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/spdk/dpdk/lib/librte_fib/trie.h b/src/spdk/dpdk/lib/librte_fib/trie.h new file mode 100644 index 000000000..bb750c5ae --- /dev/null +++ b/src/spdk/dpdk/lib/librte_fib/trie.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com> + * Copyright(c) 2019 Intel Corporation + */ + +#ifndef _TRIE_H_ +#define _TRIE_H_ + +/** + * @file + * RTE IPv6 Longest Prefix Match (LPM) + */ + +#ifdef __cplusplus +extern "C" { +#endif + +void * +trie_create(const char *name, int socket_id, struct rte_fib6_conf *conf); + +void +trie_free(void *p); + +rte_fib6_lookup_fn_t +rte_trie_get_lookup_fn(struct rte_fib6_conf *fib_conf); + +int +trie_modify(struct rte_fib6 *fib, const uint8_t ip[RTE_FIB6_IPV6_ADDR_SIZE], + uint8_t depth, uint64_t next_hop, int op); + + +#ifdef __cplusplus +} +#endif + +#endif /* _TRIE_H_ */ |