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 12F1CA00C5; Sun, 5 Jul 2020 17:39:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F70F1D927; Sun, 5 Jul 2020 17:39:08 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70085.outbound.protection.outlook.com [40.107.7.85]) by dpdk.org (Postfix) with ESMTP id E77E91D558 for ; Sun, 5 Jul 2020 17:39:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KO/tOCIN4TN1vqjW8d1liKSLsnl1oWCL1tvvrIz3WKmwOuBK0H4YrpGp5HcHqgKgJ2XUvjefuplO+yqU6fPl0glk/x2X5EDD+UdvigGsLmh9QK/2+cbQNqejPdR7F9nI5gyTNOl3IOlWxkkM9GAgxwd7XJBBBZhVMJhL3Ifv5QoRKvU39D+H8ch+nNXEOVM1UDQnjttXAOaUKE0PF1NcfKUQILda5HFp8PxFVIgF0UobnipAdnDBGY7Avu68w0aoQbgtl7ozTkhQq7QYE1gLsv9TSXpR9Rf+D4UbmmHuR9MBr4Hm+HvW+i8Tdc+WPe97rdsbSXUCzAhSY20/3Piyrw== 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=vmNSVwtfSdxT5cNCEhEax2GH7Egkm5COdcz0qo21FH4=; b=GMHMtNC7PgY/KC52Y6tdMhqOZBDE3sVBOdU2NTDESu6PNfAserLu6tXWoQr7SKOXgi+pQqcs8C15Edj6Gcw++ykCeBUKRd1duB9dv9/lVg7szXnrP66QKVitna5e9VmDO7Dmg8cQSMIxddhIk0++Akek2xyyUL5Fl3JDSmOubpxOwH8e6vA+aYlIdUDHe1sNP4Pe7KHDw4L7cYPDS6B7czgMzpcu1EUbE5eQStq1QKeLcrv0uKir62NGIIOsVhdxUAXQGHa5vT6P1cJzyOu680E9cKL+Ls/2RqhLzmdcQt1SlU7S0KjHysqWvvW89cwuatZRuzD9Qd3YJlnHAn3qiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vmNSVwtfSdxT5cNCEhEax2GH7Egkm5COdcz0qo21FH4=; b=KBGvVkPvTIpza6ea6/esMmR1ji34ugZ+ULOQOVWQfy/h2wo2FLRxyrA3qN5Bz5T5AAXaGcRthRdPeiEn32TlXRS/HQiDWWT9uvewCGmZVOxpgOwUujCsNyHaA/5ay1KP+0908sl/Zm3TGarM+VzZrTqnxTxjXAVQMe7vI8g8SWU= Received: from AM0PR05MB4289.eurprd05.prod.outlook.com (2603:10a6:208:66::15) by AM0PR05MB4913.eurprd05.prod.outlook.com (2603:10a6:208:ce::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Sun, 5 Jul 2020 15:39:05 +0000 Received: from AM0PR05MB4289.eurprd05.prod.outlook.com ([fe80::c4b0:1da2:5367:975d]) by AM0PR05MB4289.eurprd05.prod.outlook.com ([fe80::c4b0:1da2:5367:975d%5]) with mapi id 15.20.3153.029; Sun, 5 Jul 2020 15:39:05 +0000 From: Asaf Penso To: Wisam Monther , Thomas Monjalon , Jack Min , "david.marchand@redhat.com" CC: "dev@dpdk.org" , Wisam Monther Thread-Topic: [dpdk-dev] [PATCH] app/flow-perf: fix condition of hairpin queues setup Thread-Index: AQHWTrX7KBr2LqKAEUSll3cq5++/1aj5JxxQ Date: Sun, 5 Jul 2020 15:39:05 +0000 Message-ID: References: <20200630081028.21339-1-wisamm@mellanox.com> In-Reply-To: <20200630081028.21339-1-wisamm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [87.70.160.61] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 40ffaf21-a3d3-43a6-7f19-08d820f98cd4 x-ms-traffictypediagnostic: AM0PR05MB4913: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2512; x-forefront-prvs: 045584D28C x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wmvqmqh3ZVLVwCRcmx3MIVbqoO6xGtyu3TPfJRi9PopfxRXUTwxNx9/W2TAxpfD/8ngz0rq092C2kt/y/XJhNTOLt3C4VCAlYwVw8h13MBsfro5PkoRvbeUMjxCiVXKx5QgC1D/3uOxHSJMSDYgIm9pjkQDhQtI5KVioTnBfdCKSI8YwsGkJc+U95EnXmbioOKyZLUJ0Rr88TYrkTrgfa5PkmHAol7Iq+ICDWVcWRx6+KLXBKgt9G/Ov9TmwEnMM2LMZiTLpDLwiSosI+jXmtJjEljMFSVqUUMGaXiKohuM4ZBYO2QZRTT4KeZuux3N6rQfQoJwTcMJdWJSJbuYGcQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4289.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(346002)(376002)(396003)(39860400002)(366004)(53546011)(86362001)(52536014)(66946007)(66476007)(66556008)(64756008)(66446008)(33656002)(76116006)(110136005)(5660300002)(7696005)(316002)(54906003)(55016002)(83380400001)(478600001)(6506007)(9686003)(107886003)(8936002)(2906002)(186003)(26005)(71200400001)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: S9H6jMnyLqFkh+szU3+QedQQ7eNpL2orG09Lri3ESubm8zTntNcytPeq8jlWTxQ0d769nEcAzYbO+vNUxGEGm9bDZW6qar0q7czp9nNwMLkQQr+VwYoLZ5ymVCeVuR/P/JIVzSUYa1Es739bYuQd0lb6p03+acHdJE1MR3Qpqldlfdr25PtOYF7ttfQzZrNBbZkZTqTySUd2IiAX5itMtDNyvw3+eSFhPkDUOYGuX1GYk868ixRBNcOQKOpGdyzrpheBdR8C5Fcw0gc/88+gbzFKMuauzKTedNz8q6O0XoQP5ZW3Llq/CiUSujlgFmsqUSUUDSAORIUQKQiDSrXqcgu2c+LnC7p8SzLiTWBACHvSfMB8728c9uKpcNSKr36O1gCgYm/sDDG8HQqwJH3XDst3i3PbMWvKkCKJSh27z5MypEgXMgNMdHQc2+ZsBv2irtv/mwglz+T3Q9B0bM1ge6140ZJlR+p8iwZFAzc0rhQ= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4289.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40ffaf21-a3d3-43a6-7f19-08d820f98cd4 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2020 15:39:05.3397 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: K78GBKqdTn5d77frXI04Q6+IR0DZK1Xf44XphZH9TR4LMBgiqLxnkWjRkIFZk0aCjBI7Q/rCaEw8EdGZ8IA40Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4913 Subject: Re: [dpdk-dev] [PATCH] app/flow-perf: fix condition of hairpin queues setup 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" Regards, Asaf Penso > -----Original Message----- > From: dev On Behalf Of Wisam Jaddo > Sent: Tuesday, June 30, 2020 11:10 AM > To: Thomas Monjalon ; Jack Min > ; david.marchand@redhat.com > Cc: dev@dpdk.org; Wisam Monther > Subject: [dpdk-dev] [PATCH] app/flow-perf: fix condition of hairpin queue= s > setup >=20 > The hairpin queue is the one that start from normal rxq, > and will be less than nr_queues where nr_queues is the > sum of normal and hairpin >=20 > Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation") > Cc: wisamm@mellanox.com >=20 > Signed-off-by: Wisam Jaddo Reviewed-by: Asaf Penso > --- > app/test-flow-perf/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c > index e155e49c37..2a04bfb8d5 100644 > --- a/app/test-flow-perf/main.c > +++ b/app/test-flow-perf/main.c > @@ -1013,7 +1013,7 @@ init_port(void) >=20 > if (hairpinq !=3D 0) { > for (hairpin_q =3D RXQ_NUM, std_queue =3D 0; > - std_queue < nr_queues; > + hairpin_q < nr_queues; > hairpin_q++, std_queue++) { > hairpin_conf.peers[0].port =3D port_id; > hairpin_conf.peers[0].queue =3D > @@ -1028,7 +1028,7 @@ init_port(void) > } >=20 > for (hairpin_q =3D TXQ_NUM, std_queue =3D 0; > - std_queue < nr_queues; > + hairpin_q < nr_queues; > hairpin_q++, std_queue++) { > hairpin_conf.peers[0].port =3D port_id; > hairpin_conf.peers[0].queue =3D > -- > 2.17.1