]> git.droids-corp.org - dpdk.git/commitdiff
sched: fix build if debug enabled
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 14 May 2014 16:25:26 +0000 (09:25 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 22 May 2014 14:14:26 +0000 (16:14 +0200)
Fix build error if RTE_SCHED_DEBUG is enabled.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_sched/rte_sched.c

index b50148425c44402baa397c3609840705e352bf15..0403b7a0d0e9dd673216e290d666ce43f7b9e24b 100644 (file)
@@ -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);
 }