sched: fix build if debug enabled
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>
This commit is contained in:
parent
3d349a1d35
commit
dc05cabd98
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user