1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
5 #ifndef __INCLUDE_RTE_TABLE_ARRAY_H__
6 #define __INCLUDE_RTE_TABLE_ARRAY_H__
16 * Simple array indexing. Lookup key is the array entry index.
22 #include "rte_table.h"
24 /** Array table parameters */
25 struct rte_table_array_params {
26 /** Number of array entries. Has to be a power of two. */
29 /** Byte offset within input packet meta-data where lookup key (i.e. the
30 array entry index) is located. */
34 /** Array table key format */
35 struct rte_table_array_key {
36 /** Array entry index */
40 /** Array table operations */
41 extern struct rte_table_ops rte_table_array_ops;