From dc05cabd98e06b96a21b715e9841bb32e57a41ad Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 14 May 2014 09:25:26 -0700 Subject: [PATCH] sched: fix build if debug enabled Fix build error if RTE_SCHED_DEBUG is enabled. Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index b50148425c..0403b7a0d0 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -1001,7 +1001,7 @@ rte_sched_port_queue_is_full(struct rte_sched_port *port, uint32_t qindex) { struct rte_sched_queue *queue = port->queue + qindex; uint16_t qsize = rte_sched_port_qsize(port, qindex); - uint16_t qlen = q->qw - q->qr; + uint16_t qlen = queue->qw - queue->qr; return (qlen >= qsize); } -- 2.20.1