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 C0131A04AB; Sun, 30 Aug 2020 13:22:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A25D31C125; Sun, 30 Aug 2020 13:16:38 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00049.outbound.protection.outlook.com [40.107.0.49]) by dpdk.org (Postfix) with ESMTP id AFC1D1C0CF for ; Sun, 30 Aug 2020 13:16:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dDcK5p/9B6vGcisqfvZd8wZSZmZzqaIXNAOVyjGUQJB9y7A8hSbdiDM1OoOhDnQjnUju6UvTj4kpKKcAGErINjvZgbwmlvq22KYkjMpTm7fIJdA+eD5PxNUaTGSXBVocv/mP3hcr31oDbkHa0YM88r1R52MxPchf2JHzje0Jw7N7w+qpmX+lpcmkpm8X3D0M15+jR5A+5pp3SeGtMdYe1hC4TfxiUSYlvKu9ERMGXg3K1606LAbe4Ds9HbQCnItYvDt1GWNgsQkzFBus4eFwDw6KWa8VBYcQbcIeWlnALl85wX0dr4BeYWG4nn+Tn0Aw/4ucI/nC31cNl1jBig0jMA== 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=b+ACFna8biI8kOPcg4Kvlvn40DUZKaUwPWC/0mAA1qc=; b=OFe2xxFqS3M+QADa/8z1AmMZOku9ILfxn+LNcnL7qsHpOiBR9quiFVLrTgy3qszQTQOLeI9lfSubPV+aUHvGArXNRvuC+bOMpWnDcnSb2TJWMpO31a9XxY9/YpqLxo6oN6HM0klIKly8knHOjBaKAMDE0suF560SFWg0BXbu/yIoQXqgWC8o50kEdyEXbU7iGXcjn+fPXkH0LhhFFV1wH//oxiUSYaVa7auBBD4UoW3PHO6nMQftO+r2NzrxVisQOAbgGrTIDPTKZ55bdCFBrKBRqrSUWuGyJcs80ifsS7St8rZ5BZQt7LuH4Hmd+kum3NUdQeAvewvRNN7twuzJ1w== 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=b+ACFna8biI8kOPcg4Kvlvn40DUZKaUwPWC/0mAA1qc=; b=Z6INs14XZrxXZIA4/SFMAsOLcqyYnf3AZ4LUnGz+G3xZ3+JJjTe368tCbYkfYhgVwZ58flhq/GNTDBcMje3Qchb6l0FQ84yHUH6aximfdS3P7upjBFxCUkUOO0e1JNTf34ZjhChZqPrvxAJG2zTXQfV4dYm26TOL1Ec0RfiGHv8= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) by AM0PR0502MB3762.eurprd05.prod.outlook.com (2603:10a6:208:1b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.21; Sun, 30 Aug 2020 11:16:31 +0000 Received: from AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::4c8a:9848:2e2a:3598]) by AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::4c8a:9848:2e2a:3598%6]) with mapi id 15.20.3326.025; Sun, 30 Aug 2020 11:16:31 +0000 From: Wisam Jaddo To: dev@dpdk.org, thomas@monjalon.net, asafp@mellanox.com, akozyrev@nvidia.com, akozyrev@mellanox.com, arybchenko@solarflare.com, jackmin@mellanox.com Cc: wisamm@mellanox.com Date: Sun, 30 Aug 2020 11:15:40 +0000 Message-Id: <20200830111544.4190-10-wisamm@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200830111544.4190-1-wisamm@mellanox.com> References: <20200830111544.4190-1-wisamm@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: AM4PR05CA0008.eurprd05.prod.outlook.com (2603:10a6:205::21) 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 AM4PR05CA0008.eurprd05.prod.outlook.com (2603:10a6:205::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19 via Frontend Transport; Sun, 30 Aug 2020 11:16:30 +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: 167758d1-452c-42aa-f4d2-08d84cd625da X-MS-TrafficTypeDiagnostic: AM0PR0502MB3762: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:345; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6JiwNOEc0u4OL6JVR0MvUSrLt3B7tY2EBfMqckMUzyAmMEsDxwJXrR41WzomUG+s2yRly+gRt6SmezUxx9RIdCxs8ADXRkgItjogUyUFNLwJJU4OMtcbFTSKfnVGXgpqUqaOczsBH4XLiEfwKXRFlo/ulKNnjDJcKFG7E9KjFm56iOxZ8VIpL6/IhW4PdHoejAF6ZGfGVo3+t0bLtJXiOZoo8uF9QKYMDwmSatIT0G52g3KUNI1/p5agRucLgzVR8v0S22uXRSGQGhS5TdyarjxhPRK89GaBTqNBe0QbCw7aPtvtcY+cjoQH451gTaz06UqTpD5zMKLmJ6mg9R0G2w== 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; SFS:(4636009)(366004)(396003)(136003)(39860400002)(376002)(346002)(478600001)(107886003)(316002)(5660300002)(4744005)(8886007)(2906002)(6636002)(4326008)(86362001)(36756003)(6666004)(1076003)(55016002)(8936002)(26005)(2616005)(7696005)(66946007)(66556008)(52116002)(83380400001)(16526019)(8676002)(186003)(956004)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: I+phqkJiqnlyT6IHv66gY/fxFyR2poCR4El6TlrYsUUGanVP7+xEPyKecrJAZbFtoJ6jR/9XkkFt52s4IWnfG70n+P8c4f1d9jAShofgoOSM+7GRMo7HAmXSgG5cIVzmTBDyTaoKsS6NtKbcEqhwZGTk/LupivNLLr6b5Fp3vk7AclCfRDuzTdLV9YdscnxnFQRrUmLLgOBzgPEj7PKUHvZ56jJJQiHBoRlNhmauX611eQioBWUOvzQr6Y26a/BAyT5hK7kx0SCUn60zapFW5zka8hSSDQASKXrKzly1tvBlr/O3K6ZDfq8xp8Lzd1G4EMZDk3pJbMvzPTVfrhA60c5Oe4VCE6wPeOULFGMVC3ud8yqJfQCkzvdLeUj0J73/9JtXn4sHMjKJZ40G5tFU7oVs8XCQlo6pfri6JybjDUTaatMIH5u7nsGUrZszTQkPnn3Ym0VirpX+NIkxBrLe8/i5ax283l9G8HNPxqVmbCyPHfbrhaLf0KVut/FeXpV1HvwinCKOPoR61BHg2UQ8aipqt0hMrFFraSqMZWSJeAzVy26yhgBTFi2l2qGvvqGkN6KPMgxaf9QsS13f3ompfUAn+i8WbdLcN+HjUnsPH5yREuLhuBgR9mGqTQhHrPKjOCaP4EIm75CncN68EVkpMQ== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 167758d1-452c-42aa-f4d2-08d84cd625da X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6610.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2020 11:16:31.6842 (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: zAyFaZVJC1FLiIB1CDVIjRcfMTm8KAW294A+EeRmKAEV2ABKuFCCqC+fvmlZT/iZ8BmN2ZIm7PnNSL5jmXwB7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3762 Subject: [dpdk-dev] [PATCH 09/13] app/flow-perf: fix source ipv4 matching 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" All value must be converted into intended endianness. Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation") Cc: wisamm@mellanox.com Signed-off-by: Wisam Jaddo Acked-by: Alexander Kozyrev --- app/test-flow-perf/items_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-flow-perf/items_gen.c b/app/test-flow-perf/items_gen.c index cc031f24a5..8277ac70da 100644 --- a/app/test-flow-perf/items_gen.c +++ b/app/test-flow-perf/items_gen.c @@ -64,7 +64,7 @@ add_ipv4(struct rte_flow_item *items, memset(&ipv4_spec, 0, sizeof(struct rte_flow_item_ipv4)); memset(&ipv4_mask, 0, sizeof(struct rte_flow_item_ipv4)); - ipv4_spec.hdr.src_addr = para.src_ip; + ipv4_spec.hdr.src_addr = RTE_BE32(para.src_ip); ipv4_mask.hdr.src_addr = RTE_BE32(0xffffffff); items[items_counter].type = RTE_FLOW_ITEM_TYPE_IPV4; -- 2.17.1