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 18E61A0C42; Wed, 12 May 2021 08:53:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 879284003F; Wed, 12 May 2021 08:53:45 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2063.outbound.protection.outlook.com [40.107.94.63]) by mails.dpdk.org (Postfix) with ESMTP id BF2584003E; Wed, 12 May 2021 08:53:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nd11UJDlx9u8HNxcle/Mm9eY5y5EatbqLZ2CfYbkgSlimFhBEPcQ+IqgnYCL5TrukqxOjDBZJDFr8lTM0M+A9WEJT2h3lH8RSSseQyo8syM19DAYR1gImpRR0NCICY0x5QLM7bjHnxAeR2CLmlKkMYpGKXP2KJKpXQ/TwqjEiJ5FiMFtdi6VzfIgG5Ay5XUvjdXwqPjwWxe/T5AI6AKupDNsqRcyvVJvj3v17Oq0ymBqWyTMEewjNeJ/c0oWGcaDZvx7FF9fkl4kioRQr1Om59gDsmTMA4ZdCUaCh3XQx+PgAau1sUZrn529N7CO2RufyYLD4iat3mxfTAybsoZb+w== 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=XqxloiHKZGQNdkd6yI46eq5bhUZTPmSKlL6OzENvsBQ=; b=XKtkkxAsjMW6e1awPHBVbMUZ8cqXf9xXO/Oj/fn+LovNb1fY9gbQEDfd1qwkLO/tOksyOlPfi3W+A2DMVrD/lA6mfU4pQYAozcjyJy9RgH6s9QWb1TPn730a2BQPxCH0GyTU80DePSCZ5sdSTkn9SxtyJJc8oJuH9EPHnJAYXUHnltujZQPh1iQGDj5iLzyMr7vFxaDObJevVj3jki2zlW1jxjNSYGnHeuhujrPTBI1yde2dKjnfdZmVuPVnhE4n+IfS9T9GW1fXJ0Pg6SC4sjXpdsQM0irFhSBUA0EA4N41tY0c/6DEW9YrC0xEY4fYWvswMsiXrhrufLPk30YNUQ== 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=XqxloiHKZGQNdkd6yI46eq5bhUZTPmSKlL6OzENvsBQ=; b=qgpeUs1Cep/PGN0CQT+GO8yRUiA9gugHnDEEh74xmNVp13bvjN1UKcZqJD1YpqKpaASWm5UqQviWqxUjBLjuYKex4SSyyLeENvcJx4iMvB9QaE6NKQG2K9CZ1jYgBcx0/m+re3uEWZ720T9YAH8P6LFscyn+c4IDOqLPulYUOetVHVVyUx2ezNyy5oJtfreETOABUaFRPlDyiPSEsA4QapInVdo359dF4bKaLl0D4fR1FZMLtkYQ7E1/5cHNgKemFh4hM0/kuwfc08MUZWIFTARRD6XX/Va6FqhQqA4PD+4JWcnrBXU0kHCXkG+kh9W99HYSz282dJJGGY7U7hbnng== Received: from DM6PR02CA0128.namprd02.prod.outlook.com (2603:10b6:5:1b4::30) by BY5PR12MB4017.namprd12.prod.outlook.com (2603:10b6:a03:1ac::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Wed, 12 May 2021 06:53:41 +0000 Received: from DM6NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1b4:cafe::7a) by DM6PR02CA0128.outlook.office365.com (2603:10b6:5:1b4::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Wed, 12 May 2021 06:53:41 +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 DM6NAM11FT006.mail.protection.outlook.com (10.13.173.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4129.25 via Frontend Transport; Wed, 12 May 2021 06:53:41 +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, 12 May 2021 06:53:38 +0000 From: Jiawei Wang To: , , , , Shahaf Shuler CC: , , Date: Wed, 12 May 2021 09:53:24 +0300 Message-ID: <20210512065324.17721-1-jiaweiw@nvidia.com> X-Mailer: git-send-email 2.18.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28f0e8e4-17da-407b-f362-08d91512ad8b X-MS-TrafficTypeDiagnostic: BY5PR12MB4017: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3+/g2naNAFeRa6f7xZmBgPDnmDI4O7fyc3iuSi1VMwBA2p1U/QLZqa8g8/6VJLQsezdRFYs8q92kYGYaX56hqn3mKN87fTJn0UVwP5gSNwyE7GEKK6UayJgobDpY+ENb4cu8g0qdLv9dh+s5uRqtVRaCoeXQXuIxjsMBGb48sgX542t33XjyMKaQiIUMggEHRoOE9OLCM80z5aLcUwUKqSSldv+ZhDHns15/OYsQ2fyjfR1fW1Gm7SvoaRRP5nsGMK45qvtFARH0YRjopVWx6wOAhr64zjm7znxJqx3dy8vVA+hcSZZHATDPQkP6vIKhrg9OTtfSIfoxBCldma2odHItvTVuBB42scxXNlbJOjVh7rjv97JZsrcfThSM1FKUj35sHBYc91/BCNiVuhJ+RmxGjQObeILtrexLsGqeRmX6RnLpDgg7b/HnH9FCHMVUycBRsfCoi63zrl2y6ocEbr1Vi8HfyMR76nVvmR3Jof2/qBFD7d58rksTR/ZGQ4dbKK/8jFErqXSDSMgHExGWSFifI+lQrcLlOKGcN6VtN7Lbo7K0sdqoFjB/RKHjouR5I/5ucV1XNt1PNRP1Reyt151XokctHM7YohlxIR/wvcyAuFaudm5PXp2TRBJf8qWePZsKTT/YZ3TDBnt1xZEy6A== 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)(46966006)(36840700001)(70206006)(70586007)(2616005)(7636003)(2906002)(54906003)(4326008)(6636002)(8936002)(110136005)(426003)(6286002)(336012)(356005)(6666004)(36756003)(36860700001)(36906005)(55016002)(186003)(16526019)(1076003)(498600001)(26005)(82310400003)(47076005)(86362001)(5660300002)(7696005)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 06:53:41.3691 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28f0e8e4-17da-407b-f362-08d91512ad8b 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: DM6NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4017 Subject: [dpdk-dev] [PATCH] net/mlx5: fix the mirror not work with meter action 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" While there's mirror action prior to the meter action in the E-Switch flow, means that the packets should be duplicated into port firstly, and then do meter and send to the original destination. MLX5 PMD will split the above E-Switch flow into two sub flows, similar as mirror with modify action before. Fixes: 07627fbf1506 ("net/mlx5: support E-Switch mirroring with modify action") Cc: stable@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 3194cd5633..2d301de818 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -5125,6 +5125,7 @@ flow_check_match_action(const struct rte_flow_action actions[], case RTE_FLOW_ACTION_TYPE_NVGRE_DECAP: case RTE_FLOW_ACTION_TYPE_RAW_DECAP: case RTE_FLOW_ACTION_TYPE_MODIFY_FIELD: + case RTE_FLOW_ACTION_TYPE_METER: if (fdb_mirror) *modify_after_mirror = 1; break; -- 2.18.1