xref: /dpdk/examples/qos_sched/cfg_file.h (revision 7917b0d38e92e8b9ec5a870415b791420e10f11a)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4 
5 #ifndef __CFG_FILE_H__
6 #define __CFG_FILE_H__
7 
8 #include <rte_sched.h>
9 #include <rte_cfgfile.h>
10 
11 int parse_u64(const char *entry, uint64_t *val);
12 
13 int cfg_load_port(struct rte_cfgfile *cfg, struct rte_sched_port_params *port);
14 
15 int cfg_load_pipe(struct rte_cfgfile *cfg, struct rte_sched_pipe_params *pipe);
16 
17 int cfg_load_subport(struct rte_cfgfile *cfg, struct rte_sched_subport_params *subport);
18 
19 int cfg_load_subport_profile(struct rte_cfgfile *cfg,
20 			     struct rte_sched_subport_profile_params
21 			     *subport_profile);
22 
23 #endif
24