5 #ifndef __INCLUDE_RTE_SCHED_H__
6 #define __INCLUDE_RTE_SCHED_H__
59 #include <sys/types.h>
60 #include <rte_compat.h>
72 #define RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE 4
75 #define RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS 4
78 #define RTE_SCHED_QUEUES_PER_PIPE \
79 (RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE * \
80 RTE_SCHED_QUEUES_PER_TRAFFIC_CLASS)
85 #ifndef RTE_SCHED_PIPE_PROFILES_PER_PORT
86 #define RTE_SCHED_PIPE_PROFILES_PER_PORT 256
99 #ifndef RTE_SCHED_FRAME_OVERHEAD_DEFAULT
100 #define RTE_SCHED_FRAME_OVERHEAD_DEFAULT 24
112 struct rte_sched_subport_params {
153 struct rte_sched_pipe_params {
163 #ifdef RTE_SCHED_SUBPORT_TC_OV
164 uint8_t tc_ov_weight;
177 uint32_t n_pkts_red_dropped;
225 struct rte_sched_port *
252 int __rte_experimental
254 struct rte_sched_pipe_params *params,
255 uint32_t *pipe_profile_id);
272 struct rte_sched_subport_params *params);
292 int32_t pipe_profile);
376 uint32_t subport, uint32_t pipe, uint32_t traffic_class,
377 uint32_t queue,
enum rte_meter_color color);
402 uint32_t *subport, uint32_t *pipe,
403 uint32_t *traffic_class, uint32_t *queue);
406 rte_sched_port_pkt_read_color(
const struct rte_mbuf *pkt);