From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0595A0567; Wed, 10 Mar 2021 14:50:15 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7AA2322A68E; Wed, 10 Mar 2021 14:49:38 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2044.outbound.protection.outlook.com [40.107.101.44]) by mails.dpdk.org (Postfix) with ESMTP id 460BF22A684; Wed, 10 Mar 2021 14:49:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bMhzjzYO1JpyJI7xTqxR2U7sWy5/QRoAkubHd89m1aDim6Sx4LVkVCIXkVbpMS7axW5SScK8uju6wuRD3QtpYX3BlRhfozuGoNfRV1BBrY5k1TbUCZSwTQ5bXjkzZkbO34JDFqcpXH1X3JCkPyrIrVgNgJXcPV11zircdPLq0YPUoitCeDxICrjQr8WAsC0OSYUSYU+kWEr9hFoSaPmlxWGEVD0dbn+XKiSJjY0xOff2Wuh3ssGDbUJaoHkd9UC6DKG0qXFyZ8WWVGXz9+Ias/BZihcEyttl1DHELCcvZAHFKa8GiwG/kNkTg88Sj1J1qc8CciIly4tnGOV3c04nuw== 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=Vyq0MzODcT8ZiOh2hMxcp5YIsTffYfNu5lrGaEYX/F0=; b=oHF0sLtXag4/NtRk3BAjpOeeLJulKD8zAi1Y7vzWgqVze6snEKqO5ADhNsG+lOYgPcnAFkgASniVRduipDxDcoIgdNyEj8ygWx+yyL+KjaZtx1Kdj9HvhuLKCsUWBCU51vYhBr/qwQGjHV6g7U9PQmT5YT9AFj165QPYWSsxG89t/7uawUi5AcPYvK5a7d6ftH1iGVm/d5KzGyXDXnVckBgFwe4xIQOLz7Kct03aIuigBwEoTGLbDxZ1TJ8/76tSs3v6hwoFaU6UGuK+ERvf53PtDs1Yzu4OOAhF8qwwOuHT1k2c/FXn2dDMGiFD4V/tlIohDxsjqRMPLRsmtO6OtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vyq0MzODcT8ZiOh2hMxcp5YIsTffYfNu5lrGaEYX/F0=; b=Iy+D2qreX7iQQljYrEc2gKybZLoGlMH9P4iWyZk9p6ew8Q9b5wEiGrK4GK53L2ehV2NNCRkr0SpB6ZuhKoTOMdVTH2f7nlh9YUf+a65LqY+OThlfqaawaxBNCUN4G0od35i3pXYM12GzORQNGwmDQqo1cLdNrEEX59uqIq2W2+Zc43QIo+YN0/gu9kzEkvlZml22EzLfNDzKxKSD082hmauFjUKsjn6M0+02H4CLA8aGP3bTPCtAuWtha5VpyX3y2w9eGbKt8wmUVcHv16UxRGkAD3OggMPfBH5lJd6cGaAM1YtTfkjivYZ10JZqzrUoYwfBS3SrWY8SGhX7g/4BRg== Received: from MW4PR03CA0237.namprd03.prod.outlook.com (2603:10b6:303:b9::32) by MWHPR12MB1616.namprd12.prod.outlook.com (2603:10b6:301:b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.26; Wed, 10 Mar 2021 13:49:34 +0000 Received: from CO1NAM11FT060.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::f4) by MW4PR03CA0237.outlook.office365.com (2603:10b6:303:b9::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 13:49:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT060.mail.protection.outlook.com (10.13.175.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 13:49:34 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Mar 2021 13:49:28 +0000 From: Wisam Jaddo To: , , , , CC: Date: Wed, 10 Mar 2021 15:48:58 +0200 Message-ID: <20210310134858.8104-8-wisamm@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310134858.8104-1-wisamm@nvidia.com> References: <20210307091202.586-2-wisamm@nvidia.com> <20210310134858.8104-1-wisamm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67b53004-5bf2-494b-0152-08d8e3cb56d3 X-MS-TrafficTypeDiagnostic: MWHPR12MB1616: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ELLolygoeTWOOf1LM3YqqSEaWKPuEWahbEklwVnZGKaPxNj97XJrGJiw1fqvdM6IQOJv3BRMJhBafvyHzgYqAirpdungeDsyqkHWffqNy6PzlDO5cYoXEREjfqcveXOxm18IKQwVc8spmz/sYkEOtveKHLTOc3RyRzlI2+WtjmlG8lDSpA9LQTACnhyVaJFfi/95RoSF5GzeOW2UYZHJYE6fXq/pR6jnZrMS/GumO8pIz1deBCGG203EY8708xMECWPwFQMP1Vqv4ysnhIB6J9x4OrZq/BF0Vuo4G4woVluLwuI0TAx4ogXdMu6hQgJa0FXccvC7h2bRgNfOMhji2kn1K8rAP0W/V0YG1xLayxjHX1Z7NTi+lv9xQfPnM1pm64cETHdxUeLdBGsg8Qb9ZVf72Sf0OwDxWJxSMIn5zW8AvCQyt2KTQXvmFzKaoh8Oh8lDkq849y1POXb0uLRQz+CuObrMBV5lg195YSx2WXsfONsuqr8p+4Z+x1zn1PLdXhgDswp0N8NS62A4+AME/O0XRwBV2Un6SmIhcAk4dQiezMqeLbM9EHrY1MoDJMpJ4iOT8Tr9Pl0cQ68V0OgXEfcT74JFVNHMd7aNWCtzsw3vxvtJMsPZB5IktBjiMIcADk4+iQUAlERQIFhuHVeEyQmUswEHW6/8jzLsVbBLbpGXp6sJ2uSqCJTORi+tvvlj X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(136003)(346002)(36840700001)(46966006)(336012)(83380400001)(2616005)(478600001)(26005)(82740400003)(426003)(55016002)(82310400003)(86362001)(4326008)(34020700004)(7636003)(356005)(36906005)(186003)(316002)(16526019)(6666004)(70206006)(110136005)(36756003)(8676002)(70586007)(6286002)(47076005)(1076003)(5660300002)(4744005)(7696005)(2906002)(36860700001)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 13:49:34.6450 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 67b53004-5bf2-494b-0152-08d8e3cb56d3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1616 Subject: [dpdk-dev] [PATCH v2 7/7] app/flow-perf: fix setting decap data for decap actions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" When using decap actions it's been set to the data to decap into the encap_data instead of decap_data, as a results we end up with bad encap and decap data in many cases. Fixes: 0c8f1f4ab90e ("app/flow-perf: support raw encap/decap actions") Cc: stable@dpdk.org Signed-off-by: Wisam Jaddo --- app/test-flow-perf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index 3d79430e9a..6bdffef186 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -730,7 +730,7 @@ args_parse(int argc, char **argv) for (i = 0; i < RTE_DIM(flow_options); i++) { if (strcmp(flow_options[i].str, token) == 0) { printf("%s,", token); - encap_data |= flow_options[i].mask; + decap_data |= flow_options[i].mask; break; } /* Reached last item with no match */ -- 2.17.1