From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4EBE730E for ; Thu, 3 Jul 2014 08:35:55 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 02 Jul 2014 23:36:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,593,1400050800"; d="scan'208";a="567676238" Received: from fmsmsx107.amr.corp.intel.com ([10.19.9.54]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2014 23:36:13 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX107.amr.corp.intel.com (10.19.9.54) with Microsoft SMTP Server (TLS) id 14.3.123.3; Wed, 2 Jul 2014 23:36:09 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.123.3; Wed, 2 Jul 2014 23:36:09 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.122]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.210]) with mapi id 14.03.0123.003; Thu, 3 Jul 2014 14:36:04 +0800 From: "Zhang, Helin" To: Thomas Monjalon , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/7] ethdev: fix build of Tx rate limitation debug Thread-Index: AQHPlgcC0rC93KWZgEKane1eBSpSvZuN5fgA Date: Thu, 3 Jul 2014 06:36:04 +0000 Message-ID: References: <1404313375-2205-1-git-send-email-thomas.monjalon@6wind.com> <1404313375-2205-3-git-send-email-thomas.monjalon@6wind.com> In-Reply-To: <1404313375-2205-3-git-send-email-thomas.monjalon@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 06:35:55 -0000 > -----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 d= ebug >=20 > The commit 8dbe82b0733 (Tx rate limitation) didn't compile if > CONFIG_RTE_LIBRTE_ETHDEV_DEBUG is enabled. >=20 > Signed-off-by: Thomas Monjalon > --- > lib/librte_ether/rte_ethdev.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > 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=3D%d, " > "bigger than link speed=3D %d\n", > - tx_rate, link_speed); > + tx_rate, link.link_speed); > return -EINVAL; > } >=20 > @@ -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=3D%d, " > "bigger than link speed=3D %d\n", > - tx_rate, link_speed); > + tx_rate, link.link_speed); > return -EINVAL; > } >=20 > -- > 2.0.0 Reviewed-by: Helin Zhang