1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2018 Intel Corporation
5 #ifndef _INCLUDE_TMGR_H_
6 #define _INCLUDE_TMGR_H_
11 #include <rte_sched.h>
15 #ifndef TMGR_PIPE_SUBPORT_MAX
16 #define TMGR_PIPE_SUBPORT_MAX 4096
19 #ifndef TMGR_SUBPORT_PROFILE_MAX
20 #define TMGR_SUBPORT_PROFILE_MAX 256
23 #ifndef TMGR_PIPE_PROFILE_MAX
24 #define TMGR_PIPE_PROFILE_MAX 256
28 TAILQ_ENTRY(tmgr_port) node;
30 struct rte_sched_port *s;
31 uint32_t n_subports_per_port;
34 TAILQ_HEAD(tmgr_port_list, tmgr_port);
40 tmgr_port_find(const char *name);
42 struct tmgr_port_params {
44 uint32_t n_subports_per_port;
45 uint32_t frame_overhead;
51 tmgr_subport_profile_add(struct rte_sched_subport_params *p);
54 tmgr_pipe_profile_add(struct rte_sched_pipe_params *p);
57 tmgr_port_create(const char *name, struct tmgr_port_params *params);
60 tmgr_subport_config(const char *port_name,
62 uint32_t subport_profile_id);
65 tmgr_pipe_config(const char *port_name,
67 uint32_t pipe_id_first,
68 uint32_t pipe_id_last,
69 uint32_t pipe_profile_id);
71 #endif /* _INCLUDE_TMGR_H_ */