summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 15:10:30 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 22:32:18 +0200
commit1656e23d084e8b03afce58a318c268084bc16c27 (patch)
treea902dd87898b1ffb670a3c1cf853de95cd89d870
parentb3343b5c910c545a7c4a46f909ce97c7f050ae28 (diff)
downloaddpdk-1656e23d084e8b03afce58a318c268084bc16c27.zip
dpdk-1656e23d084e8b03afce58a318c268084bc16c27.tar.gz
dpdk-1656e23d084e8b03afce58a318c268084bc16c27.tar.xz
ethdev: fix build of Tx rate limitation debug
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> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
-rw-r--r--lib/librte_ether/rte_ethdev.c4
1 files 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;
}