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 439B0A0350; Tue, 30 Jun 2020 10:10:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7341D1BE99; Tue, 30 Jun 2020 10:10:52 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150081.outbound.protection.outlook.com [40.107.15.81]) by dpdk.org (Postfix) with ESMTP id C88581BE97 for ; Tue, 30 Jun 2020 10:10:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WnWe7wuAku/kQKeTMjLSOm60BTeqT/JbBg6vDKDpyP69PetajQvg6o7iC5enYOvwoZ+vp/maBWUV192ugiyIYWV9AHs2LqYoQjLtdyOc0vg4BpnjN+IM5uDSALUBaBJhpjCN0wEZPldSmE1hlVkSyBJu4qKOhkI8nbCxS/bzWqFmuKJTRoNtzhHLzrYbmF/bY9TkjGj1RJy3UMgL7yGjeMIl2rwVbS6uiI0cTtd7g8HSU37OlczNwOMeP3hAS+2A0MI/bLba+FBg8fnismQMXr2kWiIeVjwVeY+GXMX2Bu4KCN8zTixODq1+TumfWdFj/+u35rC/vIHClBGdT3uHSw== 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=NLZ4J2/LTAmutL/TNzTmzjEeXjoXIvgy2f66gGmwVK0=; b=Tsv1Kg/oEthh1dcZ/TviL8G1gqfQjCNC2wQataKu/CyNgIY9om681zXvhyPYYawg3kg8rujCFyhcxzNpKPRh/mZvnPruFkmfEm8/CYry1TPPQ2ZqYFfVIyDEspfYS0ZeoOd6WNXZxeYWvBprxJ0arIRA229iHI1JHVfuhlWnNgZ4z4SR3A/PIzF+rqTroKZljVAE/FCCdkb4Zb7IG6rlgN4LKEbrOhUG9Iby2TgFl4U6QV2S2E4ZsfP60eeSMN01c9N/7TFy/shGR4pP/IWhk5tfniduPDLo0fENahT6a20FgxIHkXoae0MxsE064r6OCKbM9EeQCZ4pQTpwRYgrnA== 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=NLZ4J2/LTAmutL/TNzTmzjEeXjoXIvgy2f66gGmwVK0=; b=hxQTZ1rreOvV1SuPR5W95uCNn1BqyFKZxozALBULVnfgNJPor4HDXrNXgu+3PdJK42iepLUNB0hvFgM1E7M+KvblG34kZ9CgO+ptbMAzHnwW6s51umUa8EIhH44eHci0HLrx78+428PKQnVV/OHQSLWU9s9gCcdmfHBBUdPijWI= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) by AM0PR05MB4356.eurprd05.prod.outlook.com (2603:10a6:208:58::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.25; Tue, 30 Jun 2020 08:10:49 +0000 Received: from AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::103:d46f:87df:6525]) by AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::103:d46f:87df:6525%7]) with mapi id 15.20.3131.028; Tue, 30 Jun 2020 08:10:49 +0000 From: Wisam Jaddo To: thomas@monjalon.net, jackmin@mellanox.com, david.marchand@redhat.com Cc: dev@dpdk.org, wisamm@mellanox.com Date: Tue, 30 Jun 2020 08:10:28 +0000 Message-Id: <20200630081028.21339-1-wisamm@mellanox.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: AM0PR04CA0001.eurprd04.prod.outlook.com (2603:10a6:208:122::14) To AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by AM0PR04CA0001.eurprd04.prod.outlook.com (2603:10a6:208:122::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Tue, 30 Jun 2020 08:10:49 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cfa33dff-b4f7-45a6-4ea1-08d81ccd1992 X-MS-TrafficTypeDiagnostic: AM0PR05MB4356: 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:5516; X-Forefront-PRVS: 0450A714CB X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kdM0l/b103fjSgxQa1Q5xk4bKHJuureeGX88GhnbXeC/mjYtbwaOWdklrTzX1ggOAdM4Gf8RZM39yJzWHWEevVnWCPaHijX2Ms/gH1relcTG+27oq9hI3qeypQvjb293MBttbxz6aowyIov2TcS7ycEMTps8aFL6/9EA2AammxQb0oveQahuXKKo0htTJyCSTYEcFAPQ0SnnIeb8xqJxi7id3/s1wx6rW57C1zUV/hheAGhTKRWtfps9+43MyrYCtBEx9SG76lB5f567zjzjyKmZI8LVw67rEMT21cRMEDoGi7fQRfJJSAoHRsQgrrntNvoFTrRJoKoPfQf8pXo4Wg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6610.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(136003)(39860400002)(346002)(376002)(26005)(2906002)(1076003)(6666004)(4326008)(316002)(36756003)(5660300002)(86362001)(8676002)(66946007)(66556008)(66476007)(8886007)(83380400001)(8936002)(478600001)(7696005)(16526019)(186003)(2616005)(107886003)(52116002)(55016002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 8NdQm0q5X1CmNXH+n1wTzfbFSv4A9PxrKujORWwQKvyshGSs+T9yHvA4dNfiKWzmFgw5dN+sgapq2hvKCW8kG0mLD0xWaz8pnBP8hxf7HSNNKQ7MH8Hz64ZHJ2MgHRjcmVIYkvDHYg3FrB7KbpOEJuDbjFE+0JSck6+idns0VWruDnELY/QCO7Fq0pqmiTppVRGkxVIAhX8nRKoMSdHtbJaRa1uRPoFwfKf3DaWVj9HFouOAseH4NI+7LNf6DTtuBgAB8T+cUw9nk6lhTrmN2qt6zjh4q6szt/3cVA0txTTJb+gGb5snrfFb2WhxmXjCf9bQMMfZ3hU+hE1zFQgLTuP46aia2QQ1Oo4FO09mD5l0qEiPAEiLlaWuTBh5OqyPSLG6eL780R1GjQxPwMFSPEMrLzfsIbzFg/yHOyZMGNhvL3P9104V2E/59hP1XWZJuZtU8/zupVC3jiHAaK4OEfVYYXohAqr6jl/1W6YftwE= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfa33dff-b4f7-45a6-4ea1-08d81ccd1992 X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6610.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2020 08:10:49.7806 (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: YAuFMQCNHsgXWCDavci8fVrRZeQiGhh5KmxaFv6Hq7Whl8QQH5bJpoPsl7loFFaA3UcRVtvOnJRvAyLaarkQ9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4356 Subject: [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" 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 Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation") Cc: wisamm@mellanox.com Signed-off-by: Wisam Jaddo --- app/test-flow-perf/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) if (hairpinq != 0) { for (hairpin_q = RXQ_NUM, std_queue = 0; - std_queue < nr_queues; + hairpin_q < nr_queues; hairpin_q++, std_queue++) { hairpin_conf.peers[0].port = port_id; hairpin_conf.peers[0].queue = @@ -1028,7 +1028,7 @@ init_port(void) } for (hairpin_q = TXQ_NUM, std_queue = 0; - std_queue < nr_queues; + hairpin_q < nr_queues; hairpin_q++, std_queue++) { hairpin_conf.peers[0].port = port_id; hairpin_conf.peers[0].queue = -- 2.17.1