1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2020 Mellanox Technologies, Ltd
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() (ETH_RSS_IP | ETH_RSS_TCP)
13 #define TOTAL_MBUF_NUM 32000
14 #define MBUF_SIZE 2048
15 #define MBUF_CACHE_SIZE 512
19 #define METER_CIR 1250000
20 #define DEFAULT_METER_PROF_ID 100
22 /* This is used for encap/decap & header modify actions.
23 * When it's 1: it means all actions have fixed values.
24 * When it's 0: it means all actions will have different values.
26 #define FIXED_VALUES 1
28 /* Items/Actions parameters */
29 #define JUMP_ACTION_TABLE 2
37 /* Flow items/acctions max size */
38 #define MAX_ITEMS_NUM 32
39 #define MAX_ACTIONS_NUM 32
40 #define MAX_ATTRS_NUM 16