From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52])
 by dpdk.org (Postfix) with ESMTP id 8213930D
 for <dev@dpdk.org>; Wed,  2 Jul 2014 17:02:59 +0200 (CEST)
Received: by mail-wg0-f52.google.com with SMTP id x13so2459394wgg.11
 for <dev@dpdk.org>; Wed, 02 Jul 2014 08:03:17 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
 :references;
 bh=5D16+JwMuzRrEHEwPHO1VzNWrMK7QKT0m2EmIWS92aU=;
 b=Q1iE54hnTsduJQO+sqbaUjepDmkkLWKfjNqhhI37xSQQ1r8vVZjkGDU8+SqL/KrEqF
 JbyguG1VIFJTTx96S0Dbqtq9rGJkUOFAWmWVy+yoB7wscJCdQi3EELyDmS+9PJSyYNWB
 /2ieCNJ98bag2LCmfjFv47BS5HgF0ptZ69XMvs9LQU1gSsUK8VRkTvXkkjTJvQtKuEZJ
 LuBi8+AxeSnqAFo45tSwh9/EZfN1Atq8Q/Yhdca3jI2EfJRORi7L3mMuqyQl1IiMvp5H
 fi+WpsnvgqY3R1vHiwoQRfsH84H9mx3RB4d3A/Wpa1NlyW5ddGkhue1XmCUMDwdw2QzO
 xkTA==
X-Gm-Message-State: ALoCoQkvZ4umTeYTgPCTbyXcdgLdr4VgpK4LGjY8hJqv0rZffAUtcxklluxsgAHUi8XpMKUf0XHX
X-Received: by 10.194.22.201 with SMTP id g9mr11416552wjf.98.1404313397616;
 Wed, 02 Jul 2014 08:03:17 -0700 (PDT)
Received: from XPS13.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237])
 by mx.google.com with ESMTPSA id fc7sm55588765wjc.37.2014.07.02.08.03.16
 for <dev@dpdk.org>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Wed, 02 Jul 2014 08:03:16 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: dev@dpdk.org
Date: Wed,  2 Jul 2014 17:02:50 +0200
Message-Id: <1404313375-2205-3-git-send-email-thomas.monjalon@6wind.com>
X-Mailer: git-send-email 2.0.0
In-Reply-To: <1404313375-2205-1-git-send-email-thomas.monjalon@6wind.com>
References: <1404313375-2205-1-git-send-email-thomas.monjalon@6wind.com>
Subject: [dpdk-dev] [PATCH 2/7] ethdev: fix build of Tx rate limitation debug
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Jul 2014 15:02:59 -0000

The commit 8dbe82b0733 (Tx rate limitation) didn't compile if
CONFIG_RTE_LIBRTE_ETHDEV_DEBUG is enabled.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 lib/librte_ether/rte_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 0ebb8fb..8dccc6f 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -2261,7 +2261,7 @@ int rte_eth_set_queue_rate_limit(uint8_t port_id, uint16_t queue_idx,
 	if (tx_rate > link.link_speed) {
 		PMD_DEBUG_TRACE("set queue rate limit:invalid tx_rate=%d, "
 				"bigger than link speed= %d\n",
-			tx_rate, link_speed);
+			tx_rate, link.link_speed);
 		return -EINVAL;
 	}
 
@@ -2298,7 +2298,7 @@ int rte_eth_set_vf_rate_limit(uint8_t port_id, uint16_t vf, uint16_t tx_rate,
 	if (tx_rate > link.link_speed) {
 		PMD_DEBUG_TRACE("set VF rate limit:invalid tx_rate=%d, "
 				"bigger than link speed= %d\n",
-				tx_rate, link_speed);
+				tx_rate, link.link_speed);
 		return -EINVAL;
 	}
 
-- 
2.0.0