From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 8E948108A for ; Wed, 8 Mar 2017 00:47:07 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2017 15:47:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,260,1486454400"; d="scan'208";a="65275860" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 07 Mar 2017 15:47:06 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Mar 2017 15:47:06 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Wed, 8 Mar 2017 07:47:04 +0800 From: "Wu, Jingjing" To: "stable@dpdk.org" Thread-Topic: [DPDK 3/4] app/testpmd: fix TC mapping in DCB init config Thread-Index: AQHSl5yI8VGaOfbzzEmG8TsCGbqKpqGKCvgw Date: Tue, 7 Mar 2017 23:47:03 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810CED738@SHSMSX103.ccr.corp.intel.com> References: <1488930010-85539-1-git-send-email-jingjing.wu@intel.com> <1488930010-85539-3-git-send-email-jingjing.wu@intel.com> In-Reply-To: <1488930010-85539-3-git-send-email-jingjing.wu@intel.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-stable] [DPDK 3/4] app/testpmd: fix TC mapping in DCB init config X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2017 23:47:07 -0000 resend by mistake, drop this. > -----Original Message----- > From: Wu, Jingjing > Sent: Wednesday, March 8, 2017 7:40 AM > To: qabuild > Cc: Wu, Jingjing ; stable@dpdk.org > Subject: [DPDK 3/4] app/testpmd: fix TC mapping in DCB init config >=20 > Fix the UP and TC mapping to divide multiple UPs to TCs instead of mappin= g the > UPs who are lager than num_tcs to TC0. >=20 > Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic > class") >=20 > Cc: stable@dpdk.org > Signed-off-by: Jingjing Wu > --- > app/test-pmd/testpmd.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index > f695807..fa19f8f 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -1933,9 +1933,9 @@ get_eth_dcb_conf(struct rte_eth_conf *eth_conf, > rx_conf->nb_tcs =3D num_tcs; > tx_conf->nb_tcs =3D num_tcs; >=20 > - for (i =3D 0; i < num_tcs; i++) { > - rx_conf->dcb_tc[i] =3D i; > - tx_conf->dcb_tc[i] =3D i; > + for (i =3D 0; i < ETH_DCB_NUM_USER_PRIORITIES; i++) { > + rx_conf->dcb_tc[i] =3D i % num_tcs; > + tx_conf->dcb_tc[i] =3D i % num_tcs; > } > eth_conf->rxmode.mq_mode =3D ETH_MQ_RX_DCB_RSS; > eth_conf->rx_adv_conf.rss_conf.rss_hf =3D rss_hf; > -- > 2.4.11