xref: /dpdk/app/graph/graph_priv.h (revision 0f32dac4bbf74761972249090523f4581ca13126)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2023 Marvell.
3  */
4 
5 #ifndef APP_GRAPH_PRIV_H
6 #define APP_GRAPH_PRIV_H
7 
8 #define MAX_GRAPH_USECASES 32
9 
10 enum graph_model {
11 	GRAPH_MODEL_RTC = 0x01,
12 	GRAPH_MODEL_MCD = 0x02,
13 };
14 
15 struct usecases {
16 	char name[32];
17 	bool enabled;
18 };
19 
20 struct usecase_params {
21 	uint64_t coremask;
22 	uint32_t bsz;
23 	uint32_t tmo;
24 };
25 
26 struct graph_config {
27 	struct usecases usecases[MAX_GRAPH_USECASES];
28 	struct usecase_params params;
29 	enum graph_model model;
30 	uint64_t num_pcap_pkts;
31 	char *pcap_file;
32 	uint8_t pcap_ena;
33 };
34 
35 #endif
36