#include <sys/queue.h>
#include <rte_sched.h>
+#include <rte_red.h>
#include "common.h"
+#ifndef TMGR_PIPE_SUBPORT_MAX
+#define TMGR_PIPE_SUBPORT_MAX 4096
+#endif
+
#ifndef TMGR_SUBPORT_PROFILE_MAX
#define TMGR_SUBPORT_PROFILE_MAX 256
#endif
tmgr_port_find(const char *name);
struct tmgr_port_params {
- uint32_t rate;
+ uint64_t rate;
uint32_t n_subports_per_port;
uint32_t n_pipes_per_subport;
- uint16_t qsize[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];
uint32_t frame_overhead;
uint32_t mtu;
uint32_t cpu_id;
};
int
-tmgr_subport_profile_add(struct rte_sched_subport_params *p);
+tmgr_subport_profile_add(struct rte_sched_subport_profile_params *sp);
int
tmgr_pipe_profile_add(struct rte_sched_pipe_params *p);