741bb850ee
Some options are needed in the runtime many times, so leaving it during compilation is not correct. As a result some options has been exported into command line options to be used at run time. The options exported are: --txq=N --rxq=N --txd=N --rxd=N --mbuf-size=N --mbuf-cache-size=N --total-mbuf-count=N Signed-off-by: Wisam Jaddo <wisamm@nvidia.com> Reviewed-by: Alexander Kozyrev <akozyrev@nvidia.com>
35 lines
827 B
C
35 lines
827 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2020 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
|
|
#define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
|
|
#define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
|
|
#define GET_RSS_HF() (RTE_ETH_RSS_IP)
|
|
|
|
/* Configuration */
|
|
#define RXQ_NUM 1
|
|
#define TXQ_NUM 1
|
|
#define TOTAL_MBUF_NUM 32000
|
|
#define MBUF_SIZE 2048
|
|
#define MBUF_CACHE_SIZE 512
|
|
#define NR_RXD 256
|
|
#define NR_TXD 256
|
|
#define MAX_PORTS 64
|
|
#define METER_CIR 1250000
|
|
#define DEFAULT_METER_PROF_ID 100
|
|
|
|
/* Items/Actions parameters */
|
|
#define JUMP_ACTION_TABLE 2
|
|
#define VLAN_VALUE 1
|
|
#define VNI_VALUE 1
|
|
#define META_DATA 1
|
|
#define TAG_INDEX 0
|
|
#define PORT_ID_DST 1
|
|
#define TEID_VALUE 1
|
|
|
|
/* Flow items/acctions max size */
|
|
#define MAX_ITEMS_NUM 32
|
|
#define MAX_ACTIONS_NUM 32
|
|
#define MAX_ATTRS_NUM 16
|