From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by dpdk.org (Postfix) with ESMTP id 47E0CB0B5 for ; Wed, 14 May 2014 18:26:22 +0200 (CEST) Received: by mail-pb0-f42.google.com with SMTP id md12so1531102pbc.1 for ; Wed, 14 May 2014 09:26:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:user-agent:date:from:to:cc:subject :references:mime-version:content-type:content-disposition; bh=VpaCqupIEvCOm96schx6P3dlw3C/0H7ctpN+hR6Vg58=; b=fSd44HeCPLx0myeChmKQgrsLwoyucL0vLb9flAbTZxCgDzxkX2OV6vNHk44ItdbS/4 FtKD5ynxlM+Ccs6PsaU54rCIBPubT9OGfp5x1f2vPKfeFGhmGzInMDCDiA/oR24jGkm2 2UfZyBD/a1+2oQnZEkPvkojf0X+7s0zm40W4MQEaLaG+al7NNm0b8GwaG1FCCao8dBw/ n1lcrH8xTtq6f50h99PbW+/nNEPs+yv+oMsPm8KAvhOEVvda2cFS8SRTIYMkBJiid4/M eJNhhMwAKBPqzkpZHLpXjMHjZgTzV5MbX3u6GTU3LH/EPbpl4OeCAA4bzcE/heuppvkt oxpg== X-Gm-Message-State: ALoCoQk269EhW8sIJd6eJuREi8jkJOEkMjxQpP/Ljlfl9GVoJzfhghjvbMROgL9pP9+mUf6mqVlr X-Received: by 10.66.163.164 with SMTP id yj4mr5600915pab.91.1400084789672; Wed, 14 May 2014 09:26:29 -0700 (PDT) Received: from localhost (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id ys7sm3055336pac.25.2014.05.14.09.26.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 09:26:28 -0700 (PDT) Message-Id: <20140514162628.077795006@networkplumber.org> User-Agent: quilt/0.61-1 Date: Wed, 14 May 2014 09:25:26 -0700 From: Stephen Hemminger To: dev@dpdk.org References: <20140514162524.113765980@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=sched-debug-fix.patch Subject: [dpdk-dev] [PATCH 2/3] rte_sched: fix compile if DEBUG enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 16:26:22 -0000 Fix build error if RTE_SCHED_DEBUG is enabled. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/librte_sched/rte_sched.c 2014-05-14 09:13:57.377235388 -0700 +++ b/lib/librte_sched/rte_sched.c 2014-05-14 09:13:57.377235388 -0700 @@ -1001,7 +1001,7 @@ rte_sched_port_queue_is_full(struct rte_ { 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); }