From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE2D2A0565; Mon, 2 Mar 2020 08:19:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 89EFC1BFF2; Mon, 2 Mar 2020 08:19:10 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 6FFA21BFF0; Mon, 2 Mar 2020 08:19:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2020 23:19:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,506,1574150400"; d="scan'208";a="239456061" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 01 Mar 2020 23:19:06 -0800 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 1 Mar 2020 23:19:04 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 2 Mar 2020 15:19:01 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Mon, 2 Mar 2020 15:19:01 +0800 From: "Li, Xiaoyun" To: "Jiang, JunyuX" , "dev@dpdk.org" CC: "Yang, Qiming" , "stable@dpdk.org" Thread-Topic: [PATCH v3] examples/vmdq: fix the output of pools/queues Thread-Index: AQHV8F6SLYtll7wq+k2VnQWCc0am9Kg05JmQ Date: Mon, 2 Mar 2020 07:19:01 +0000 Message-ID: References: <20200226083525.68649-1-junyux.jiang@intel.com> <20200302064121.60561-1-junyux.jiang@intel.com> In-Reply-To: <20200302064121.60561-1-junyux.jiang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] examples/vmdq: fix the output of pools/queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi > -----Original Message----- > From: Jiang, JunyuX > Sent: Monday, March 2, 2020 14:41 > To: dev@dpdk.org > Cc: Li, Xiaoyun ; Yang, Qiming ; > Jiang, JunyuX ; stable@dpdk.org > Subject: [PATCH v3] examples/vmdq: fix the output of pools/queues >=20 > To match the pools/queues configuration, the pools/queues output should s= tart > from VMDQ base queue. This patch fixed the issue. >=20 > Fixes: 6bb97df521aa ("examples/vmdq: new app") > Cc: stable@dpdk.org >=20 > Signed-off-by: Junyu Jiang > --- > examples/vmdq/main.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c index > 011110920..5ab3427c0 100644 > --- a/examples/vmdq/main.c > +++ b/examples/vmdq/main.c > @@ -441,10 +441,11 @@ update_mac_address(struct rte_mbuf *m, unsigned > dst_port) static void sighup_handler(int signum) { > - unsigned q; > - for (q =3D 0; q < num_queues; q++) { > - if (q % (num_queues/num_pools) =3D=3D 0) > - printf("\nPool %u: ", q/(num_queues/num_pools)); > + unsigned int q =3D vmdq_queue_base; > + for (; q < num_queues; q++) { > + if ((q - vmdq_queue_base) % (num_vmdq_queues / num_pools) > =3D=3D 0) > + printf("\nPool %u: ", (q - vmdq_queue_base) / > + (num_vmdq_queues / num_pools)); > printf("%lu ", rxPackets[q]); > } > printf("\nFinished handling signal %d\n", signum); > -- > 2.17.1 Acked-by: Xiaoyun Li