Vladimir Medvedkin 7dc7868b20 fib: add DIR24-8 dataplane algorithm
Add fib implementation for DIR24_8 algorithm for IPv4.
Implementation is similar to current LPM implementation but has
few enhancements:
faster control plane operations
more bits for userdata in table entries
configurable userdata size

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
2019-11-06 00:11:44 +01:00

37 lines
605 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com>
* Copyright(c) 2019 Intel Corporation
*/
#ifndef _DIR24_8_H_
#define _DIR24_8_H_
/**
* @file
* DIR24_8 algorithm
*/
#ifdef __cplusplus
extern "C" {
#endif
void *
dir24_8_create(const char *name, int socket_id, struct rte_fib_conf *conf);
void
dir24_8_free(void *p);
rte_fib_lookup_fn_t
dir24_8_get_lookup_fn(struct rte_fib_conf *conf);
int
dir24_8_modify(struct rte_fib *fib, uint32_t ip, uint8_t depth,
uint64_t next_hop, int op);
#ifdef __cplusplus
}
#endif
#endif /* _DIR24_8_H_ */