34 #ifndef __INCLUDE_RTE_SCHED_H__
35 #define __INCLUDE_RTE_SCHED_H__
88 #include <sys/types.h>
100 #define RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE 4
103 #define RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS 4
106 #define RTE_SCHED_QUEUES_PER_PIPE \
107 (RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE * \
108 RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS)
113 #ifndef RTE_SCHED_PIPE_PROFILES_PER_PORT
114 #define RTE_SCHED_PIPE_PROFILES_PER_PORT 256
127 #ifndef RTE_SCHED_FRAME_OVERHEAD_DEFAULT
128 #define RTE_SCHED_FRAME_OVERHEAD_DEFAULT 24
140 struct rte_sched_subport_params {
176 struct rte_sched_pipe_params {
186 #ifdef RTE_SCHED_SUBPORT_TC_OV
187 uint8_t tc_ov_weight;
245 struct rte_sched_port *
272 struct rte_sched_subport_params *params);
292 int32_t pipe_profile);
373 uint32_t subport, uint32_t pipe, uint32_t traffic_class,
396 uint32_t *subport, uint32_t *pipe,
397 uint32_t *traffic_class, uint32_t *queue);
400 rte_sched_port_pkt_read_color(
const struct rte_mbuf *pkt);