From: Stephen Hemminger Date: Wed, 14 May 2014 16:25:26 +0000 (-0700) Subject: sched: fix build if debug enabled X-Git-Tag: spdx-start~10798 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dc05cabd98e06b96a21b715e9841bb32e57a41ad;p=dpdk.git sched: fix build if debug enabled Fix build error if RTE_SCHED_DEBUG is enabled. Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- 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); }