34 #ifndef __INCLUDE_RTE_SCHED_H__
35 #define __INCLUDE_RTE_SCHED_H__
79 #include <sys/types.h>
89 #define RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE 4
92 #define RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS 4
95 #define RTE_SCHED_QUEUES_PER_PIPE \
96 (RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE * \
97 RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS)
100 #ifndef RTE_SCHED_PIPE_PROFILES_PER_PORT
101 #define RTE_SCHED_PIPE_PROFILES_PER_PORT 256
111 #ifndef RTE_SCHED_FRAME_OVERHEAD_DEFAULT
112 #define RTE_SCHED_FRAME_OVERHEAD_DEFAULT 24
158 #ifdef RTE_SCHED_SUBPORT_TC_OV
159 uint8_t tc_ov_weight;
204 struct rte_sched_port_hierarchy {
206 uint32_t traffic_class:2;
210 } __attribute__ ((deprecated));
225 struct rte_sched_port *
272 int32_t pipe_profile);
352 uint32_t subport, uint32_t pipe, uint32_t traffic_class,
374 uint32_t *subport, uint32_t *pipe,
375 uint32_t *traffic_class, uint32_t *queue);
378 rte_sched_port_pkt_read_color(
const struct rte_mbuf *pkt);