DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Helin" <helin.zhang@intel.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 2/7] ethdev: fix build of Tx rate limitation debug
Date: Thu, 3 Jul 2014 06:36:04 +0000	[thread overview]
Message-ID: <F35DEAC7BCE34641BA9FAC6BCA4A12E70A74A1D3@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1404313375-2205-3-git-send-email-thomas.monjalon@6wind.com>



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> Sent: Wednesday, July 2, 2014 11:03 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH 2/7] 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>
> ---
>  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


Reviewed-by: Helin Zhang <helin.zhang@intel.com>

  reply	other threads:[~2014-07-03  6:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 15:02 [dpdk-dev] [PATCH 0/7] build fixes Thomas Monjalon
2014-07-02 15:02 ` [dpdk-dev] [PATCH 1/7] eal: fix build for bsd Thomas Monjalon
2014-07-02 15:02 ` [dpdk-dev] [PATCH 2/7] ethdev: fix build of Tx rate limitation debug Thomas Monjalon
2014-07-03  6:36   ` Zhang, Helin [this message]
2014-07-02 15:02 ` [dpdk-dev] [PATCH 3/7] ethdev: fix build of named allocation debug Thomas Monjalon
2014-07-02 15:02 ` [dpdk-dev] [PATCH 4/7] pcap: fix build Thomas Monjalon
2014-07-02 15:02 ` [dpdk-dev] [PATCH 5/7] virtio: fix build of debug dump Thomas Monjalon
2014-07-03  7:17   ` Xie, Huawei
2014-07-02 15:02 ` [dpdk-dev] [PATCH 6/7] vmxnet3: fix build with debug Thomas Monjalon
2014-07-02 15:02 ` [dpdk-dev] [PATCH 7/7] ixgbe/base: " Thomas Monjalon
2014-07-03  6:33   ` Zhang, Helin
2014-07-02 17:57 ` [dpdk-dev] [PATCH 0/7] build fixes Richardson, Bruce
2014-07-02 22:13   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F35DEAC7BCE34641BA9FAC6BCA4A12E70A74A1D3@SHSMSX104.ccr.corp.intel.com \
    --to=helin.zhang@intel.com \
    --cc=dev@dpdk.org \
    --cc=thomas.monjalon@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).