X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2Fmain.h;h=915311bac8e5232c7e62b5745ae6f4dea5d1f8a6;hb=baef6bbfad1b9596c7051f5c1fcc308310296342;hp=baa2b3eadc8a73603e80bb617cd0f89b278c7be8;hpb=b0c1628b15fd92f715a875e0bc87381bd7e643b0;p=dpdk.git diff --git a/examples/qos_sched/main.h b/examples/qos_sched/main.h index baa2b3eadc..915311bac8 100644 --- a/examples/qos_sched/main.h +++ b/examples/qos_sched/main.h @@ -51,6 +51,7 @@ extern "C" { #define MAX_SCHED_SUBPORTS 8 #define MAX_SCHED_PIPES 4096 #define MAX_SCHED_PIPE_PROFILES 256 +#define MAX_SCHED_SUBPORT_PROFILES 8 #ifndef APP_COLLECT_STAT #define APP_COLLECT_STAT 1 @@ -148,10 +149,13 @@ extern struct burst_conf burst_conf; extern struct ring_thresh rx_thresh; extern struct ring_thresh tx_thresh; -uint32_t active_queues[RTE_SCHED_QUEUES_PER_PIPE]; -uint32_t n_active_queues; +extern uint32_t active_queues[RTE_SCHED_QUEUES_PER_PIPE]; +extern uint32_t n_active_queues; extern struct rte_sched_port_params port_params; +#ifdef RTE_SCHED_CMAN +extern struct rte_sched_cman_params cman_params; +#endif extern struct rte_sched_subport_params subport_params[MAX_SCHED_SUBPORTS]; int app_parse_args(int argc, char **argv);