From: Stephen Hemminger Date: Fri, 13 Nov 2015 17:58:32 +0000 (-0800) Subject: sched: drop WRR conditional X-Git-Tag: spdx-start~7968 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a3d0ca4eea9aa3993644b374b8dd3050c91f2584;p=dpdk.git sched: drop WRR conditional The RTE_SCHED_WRR value is always defined as 1. Signed-off-by: Stephen Hemminger --- diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 3400b73f22..1f8d3f8eaa 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -64,8 +64,6 @@ #define RTE_SCHED_TB_RATE_CONFIG_ERR (1e-7) #endif -#define RTE_SCHED_WRR 1 - #ifndef RTE_SCHED_WRR_SHIFT #define RTE_SCHED_WRR_SHIFT 3 #endif @@ -1879,24 +1877,6 @@ grinder_next_pipe(struct rte_sched_port *port, uint32_t pos) return 1; } -#if RTE_SCHED_WRR == 0 - -#define grinder_wrr_load(a,b) - -#define grinder_wrr_store(a,b) - -static inline void -grinder_wrr(struct rte_sched_port *port, uint32_t pos) -{ - struct rte_sched_grinder *grinder = port->grinder + pos; - uint64_t slab = grinder->qmask; - - if (rte_bsf64(slab, &grinder->qpos) == 0) { - rte_panic("grinder wrr\n"); - } -} - -#elif RTE_SCHED_WRR == 1 static inline void grinder_wrr_load(struct rte_sched_port *port, uint32_t pos) @@ -1962,11 +1942,6 @@ grinder_wrr(struct rte_sched_port *port, uint32_t pos) grinder->wrr_tokens[3] -= wrr_tokens_min; } -#else - -#error Invalid value for RTE_SCHED_WRR - -#endif /* RTE_SCHED_WRR */ #define grinder_evict(port, pos)