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 C9D4BA0565; Mon, 2 Mar 2020 03:35:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 67B321BFFC; Mon, 2 Mar 2020 03:35:10 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E9CEE1BE7D; Mon, 2 Mar 2020 03:35:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2020 18:35:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,506,1574150400"; d="scan'208";a="439982238" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 01 Mar 2020 18:35:07 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 1 Mar 2020 18:35:07 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 1 Mar 2020 18:35:06 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by shsmsx102.ccr.corp.intel.com ([169.254.2.50]) with mapi id 14.03.0439.000; Mon, 2 Mar 2020 10:35:03 +0800 From: "Yang, Qiming" To: "Jiang, JunyuX" , "dev@dpdk.org" CC: "Li, Xiaoyun" , "Jiang, JunyuX" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] examples/vmdq: fix the output of pools/queues Thread-Index: AQHV7IDxy4fZYgUWy0CAwMj3qVWQCag0nRfQ Date: Mon, 2 Mar 2020 02:35:03 +0000 Message-ID: References: <20200226075748.67911-1-junyux.jiang@intel.com> <20200226083525.68649-1-junyux.jiang@intel.com> In-Reply-To: <20200226083525.68649-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.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] 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" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Junyu Jiang > Sent: Wednesday, February 26, 2020 16:35 > To: dev@dpdk.org > Cc: Li, Xiaoyun ; Jiang, JunyuX > ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH v2] examples/vmdq: fix the output of > pools/queues >=20 > To match the pools/queues configuration, the pools/queues output should > start 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..dcba3a708 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 % (num_vmdq_queues / num_pools) =3D=3D 0) What's the different between num_vmdq_queues and num_queues? > + 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