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 22ED8A0562; Mon, 30 Mar 2020 04:21:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04C722BAE; Mon, 30 Mar 2020 04:21:29 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C74CAFFA; Mon, 30 Mar 2020 04:21:26 +0200 (CEST) IronPort-SDR: Si+b8SkK2TMUfYsf1ykIqcbnB/Dm/Xmgy9UwJlUDampLVEXjP4p+dG0s7wo6fd9R0V4uthKcpW pg2Q3DtgQfcg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2020 19:21:25 -0700 IronPort-SDR: 4ruWpCVm6nPzYdu0WL37ibaQGa0hU0eLbrdC4THQTEhzSZWxm1OzuVuDfvv0+R1AZmTOQ+U/W2 tqzdsyciIOsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,322,1580803200"; d="scan'208";a="448100311" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga005.fm.intel.com with ESMTP; 29 Mar 2020 19:21:24 -0700 Received: from orsmsx154.amr.corp.intel.com (10.22.226.12) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 29 Mar 2020 19:21:20 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX154.amr.corp.intel.com (10.22.226.12) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 29 Mar 2020 19:21:19 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 29 Mar 2020 19:21:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QOGZJhexGJ3TUkYu8hf/aOLxtE0QdnCZmBTBSq39tCiObUokRijiFXkmqlsvgWM14nxzTTnSJSur1IVpuWShKtc+d4By1dhzwk6tPD1VSUGWIycnmaAS0mserXqg3UnaODTUyLkgVKhW5VDJn/e5qGO6ggrhUvhU85Q5zsESQVd7dMm/n9m/QvfMmKXA1p3zNiCcU95CwdeeBWvVEn3sVNusuk2LHNco1cAee13YPJ+jHd3QIV3KeRajaBW+hEHK/94ItYs2Ub2zugIwqy/k9rDWT57k81jlnfeATix2bWj0K4km5N+21SAdiHJ0kK5JnxkqsDdFd7XYLCB+WKg+qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1nTEQ8uV6vy4eiXcyR5Qgb3H+Z7EIH5jwVrCuNucxIU=; b=H1QBJoLq+kxcnVczvuxwc5xVgyY/oBNLkzcJOTfqi45GPYrsNkOqHbqDlyd/K+GaTs4gTdVSQjAhDwLuUbUGzUJq/71Gtenc/5UIe0Mr+jqdNb9hCy1vU12gXxZKWZFFDCvHt2KKqaEz6L+Spn7lsqsGb5yi+ebvHlWZfHFwm+e5KvDbU+CpB3j51ahNzSnrhIkeDQwK681omWYogjKvOGvsXMQFL5RIiqM0YnozwfziIssT5K8E+nK87aJvH/N6BGLswSi0kiaXaORuEedQerOfwc/GXcd4sDwU4TNvBbrUsg4b3BhiyBjG+0pXD87KVEd8csyVhLshojI2h2K4WQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1nTEQ8uV6vy4eiXcyR5Qgb3H+Z7EIH5jwVrCuNucxIU=; b=dkYS7dt4kTY+BP5RzCaIP8IzkqOpxfPXAaHIlWTUo8vWPKb7h3IK4LB6McesVwNRq7KeOjMR8WxW8h5BzuAukpEK/JGVeRVqcHpPP11s7WWER0PXaKvea+a+PG7npTNjCFTKT5+GWcwRjzy+pb24BrS1LFs9+ollv49wv30+wAM= Received: from BN7PR11MB2818.namprd11.prod.outlook.com (2603:10b6:406:ad::23) by BN7PR11MB2595.namprd11.prod.outlook.com (2603:10b6:406:b1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18; Mon, 30 Mar 2020 02:21:18 +0000 Received: from BN7PR11MB2818.namprd11.prod.outlook.com ([fe80::ac4b:92de:860d:e573]) by BN7PR11MB2818.namprd11.prod.outlook.com ([fe80::ac4b:92de:860d:e573%6]) with mapi id 15.20.2856.019; Mon, 30 Mar 2020 02:21:17 +0000 From: "Han, YingyaX" To: "Li, Xiaoyun" , "Jiang, JunyuX" , "dev@dpdk.org" CC: "Yang, Qiming" , "stable@dpdk.org" Thread-Topic: [dpdk-stable] [PATCH v3] examples/vmdq: fix the output of pools/queues Thread-Index: AQHV8F6ZTFUW1VsqS0iGvNE6pmc2R6g0XteAgCwsgyA= Date: Mon, 30 Mar 2020 02:21:17 +0000 Message-ID: References: <20200226083525.68649-1-junyux.jiang@intel.com> <20200302064121.60561-1-junyux.jiang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yingyax.han@intel.com; x-originating-ip: [192.55.52.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a3310bab-1238-402d-5125-08d7d4510755 x-ms-traffictypediagnostic: BN7PR11MB2595: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2512; x-forefront-prvs: 0358535363 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2818.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(376002)(366004)(396003)(346002)(136003)(39860400002)(7696005)(4326008)(33656002)(86362001)(450100002)(55016002)(9686003)(26005)(478600001)(66446008)(81166006)(8936002)(81156014)(76116006)(66556008)(66946007)(66476007)(64756008)(53546011)(6506007)(2906002)(186003)(5660300002)(71200400001)(316002)(54906003)(110136005)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Jz+4RInfIn+i7xGbVSx5DbXKXsrzCls7eAjV2zmmvsLss31uDDyzwKcdGZtRUKPByhE9RJzCWQm7ygdF45gNX9Uo82XWRKpi+zNWjXxpS5C4mx2W8hqntn40Fzku9YFbZcfhuiszbO12rD3B2W4KoXbvAufPnNwQtQg7I609V4XlzF346Tbv6NBe1vlZg37DaxdiugLy9jWwTFlNgYjwYJrj2kwC8V9y075IqJJe+YQC1HrflzLLoq3kk4NjHrvYTrMO2/6ZnanOMHYGnNxOxePajwBoD5n4tSleMT0VL2uzqHd/oydAK/ppZHKOMTnnW77pqBPrJdmSMRa+KSCVTm8Kwk1YMsUAt+w1q+/JsbY4WFW4Q0HhW8OOM1kILHEIltpBWBsNK1O5c7aSOnIT18s6QoVS+daIAsLbUPLVaamf9p+tybRiHIlliUFqHlJC x-ms-exchange-antispam-messagedata: xwM26rgdM44AETtqQ/EAAiZLH3ZsqfPrFDlD/C2ozS7O0UgtiXeANHuIzIZAxoLmP4+tHzUj60zgvQS4WE6JydQdCiM1EtlBYGN0gmDVZmPPVD+bJx8O7VUXCDlyFUqz9rhMOKS9yUiEqwZfev29OA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a3310bab-1238-402d-5125-08d7d4510755 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2020 02:21:17.4407 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Uhj8AT6urgys/e5EnMdIuMZ/NMKdi6JFPIP6tPfPt+nYvRtPyjMGKn73wVazR8CzKaa53pnX7B0zssUODs8SPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2595 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-stable] [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" Tested-by: Han,YingyaX BRs, Yingya -----Original Message----- From: stable On Behalf Of Li, Xiaoyun Sent: Monday, March 2, 2020 3:19 PM To: Jiang, JunyuX ; dev@dpdk.org Cc: Yang, Qiming ; stable@dpdk.org Subject: Re: [dpdk-stable] [PATCH v3] examples/vmdq: fix the output of pool= s/queues Hi > -----Original Message----- > From: Jiang, JunyuX > Sent: Monday, March 2, 2020 14:41 > To: dev@dpdk.org > Cc: Li, Xiaoyun ; Yang, Qiming=20 > ; Jiang, JunyuX ;=20 > 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=20 > 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..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