app/flow-perf: export some config as runtime options
[dpdk.git] / app / test-flow-perf / config.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4
5 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
6 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
7 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
8 #define GET_RSS_HF() (RTE_ETH_RSS_IP)
9
10 /* Configuration */
11 #define RXQ_NUM 1
12 #define TXQ_NUM 1
13 #define TOTAL_MBUF_NUM 32000
14 #define MBUF_SIZE 2048
15 #define MBUF_CACHE_SIZE 512
16 #define NR_RXD  256
17 #define NR_TXD  256
18 #define MAX_PORTS 64
19 #define METER_CIR 1250000
20 #define DEFAULT_METER_PROF_ID 100
21
22 /* Items/Actions parameters */
23 #define JUMP_ACTION_TABLE 2
24 #define VLAN_VALUE 1
25 #define VNI_VALUE 1
26 #define META_DATA 1
27 #define TAG_INDEX 0
28 #define PORT_ID_DST 1
29 #define TEID_VALUE 1
30
31 /* Flow items/acctions max size */
32 #define MAX_ITEMS_NUM 32
33 #define MAX_ACTIONS_NUM 32
34 #define MAX_ATTRS_NUM 16