92e9fe0d87
Config load functions updated to support 100G rates for subport and pipes. Added new parse function to convert string to unsigned long long. Added error checks. Fixed format warnings. Signed-off-by: Megha Ajmera <megha.ajmera@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
24 lines
625 B
C
24 lines
625 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2010-2014 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __CFG_FILE_H__
|
|
#define __CFG_FILE_H__
|
|
|
|
#include <rte_sched.h>
|
|
#include <rte_cfgfile.h>
|
|
|
|
int parse_u64(const char *entry, uint64_t *val);
|
|
|
|
int cfg_load_port(struct rte_cfgfile *cfg, struct rte_sched_port_params *port);
|
|
|
|
int cfg_load_pipe(struct rte_cfgfile *cfg, struct rte_sched_pipe_params *pipe);
|
|
|
|
int cfg_load_subport(struct rte_cfgfile *cfg, struct rte_sched_subport_params *subport);
|
|
|
|
int cfg_load_subport_profile(struct rte_cfgfile *cfg,
|
|
struct rte_sched_subport_profile_params
|
|
*subport_profile);
|
|
|
|
#endif
|