1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Intel Corporation
5 #ifndef _RTE_MEMBER_VBF_H_
6 #define _RTE_MEMBER_VBF_H_
12 /* Currently we only support up to 32 sets in vBF */
13 #define RTE_MEMBER_MAX_BF 32
16 rte_member_create_vbf(struct rte_member_setsum *ss,
17 const struct rte_member_parameters *params);
20 rte_member_lookup_vbf(const struct rte_member_setsum *setsum,
21 const void *key, member_set_t *set_id);
24 rte_member_lookup_bulk_vbf(const struct rte_member_setsum *setsum,
25 const void **keys, uint32_t num_keys,
26 member_set_t *set_ids);
29 rte_member_lookup_multi_vbf(const struct rte_member_setsum *setsum,
30 const void *key, uint32_t match_per_key,
31 member_set_t *set_id);
34 rte_member_lookup_multi_bulk_vbf(const struct rte_member_setsum *setsum,
35 const void **keys, uint32_t num_keys, uint32_t match_per_key,
36 uint32_t *match_count,
37 member_set_t *set_ids);
40 rte_member_add_vbf(const struct rte_member_setsum *setsum,
41 const void *key, member_set_t set_id);
44 rte_member_free_vbf(struct rte_member_setsum *ss);
47 rte_member_reset_vbf(const struct rte_member_setsum *setsum);
53 #endif /* _RTE_MEMBER_VBF_H_ */