5 #ifndef __INCLUDE_RTE_SCHED_H__
6 #define __INCLUDE_RTE_SCHED_H__
59 #include <sys/types.h>
71 #define RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE 4
74 #define RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS 4
77 #define RTE_SCHED_QUEUES_PER_PIPE \
78 (RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE * \
79 RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS)
84 #ifndef RTE_SCHED_PIPE_PROFILES_PER_PORT
85 #define RTE_SCHED_PIPE_PROFILES_PER_PORT 256
98 #ifndef RTE_SCHED_FRAME_OVERHEAD_DEFAULT
99 #define RTE_SCHED_FRAME_OVERHEAD_DEFAULT 24
111 struct rte_sched_subport_params {
152 struct rte_sched_pipe_params {
162 #ifdef RTE_SCHED_SUBPORT_TC_OV
163 uint8_t tc_ov_weight;
176 uint32_t n_pkts_red_dropped;
224 struct rte_sched_port *
251 struct rte_sched_subport_params *params);
271 int32_t pipe_profile);
352 uint32_t subport, uint32_t pipe, uint32_t traffic_class,
375 uint32_t *subport, uint32_t *pipe,
376 uint32_t *traffic_class, uint32_t *queue);
379 rte_sched_port_pkt_read_color(
const struct rte_mbuf *pkt);