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 46266A04A8; Wed, 2 Mar 2022 02:34:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 110E140696; Wed, 2 Mar 2022 02:34:44 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2058.outbound.protection.outlook.com [40.107.220.58]) by mails.dpdk.org (Postfix) with ESMTP id 0159F40040; Wed, 2 Mar 2022 02:34:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RP5mMsUobsAYRYtYipe0FoCh+a/qT2MaHN1nDjMQIVfkQDUP5l5S5zNzlfvAGHiN2Z5ZRfcf/ChupcaxrU3x3G7dYAWXQykAmruFrgoJynr5E/lODZ+rpdANZlKpTEsuYsxrgiuTxhr0bqJQ5AjW0OluiW0tBBE9/lwqrUJvauPjnxyuxTA8VQbR/T6+aphLcC075j0LWXlseuKBxhUghhgFVfd05rBbZrLVQ092dxlMQS8fOwodGwHsFC/nrt5YlaengyI2GaredtFlQcCReFNagBaHu87xFuvxxjNUAyNoEQGV7pa/goA3+fZNgZ1Kvj6kNY1snCcDSm1LIDBgFA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/fDG67zCfC4XKgR1ZSzkqLQL/ABiDeeW7EAQbJ6BERg=; b=nx7E4Ga+VENGBi1ucUFFkzW1WYgVn2qyR9Uazz4/H374oUQTYk2+18pUsgM577EMWzYr36FYxcz9aHTQzSf7ntHXJcYppHh3zajkZhJAvCUjkNRmmHq3pq1gdKk0soE/lz/AoqiNXfzjs+plY929o8m07WvtJ1hiotRE8AvtsRNU8FPlNhfItC0xJ8NL6q1/Hnp8uqxQOkpQxyPl4GD5HB91iH/rRzNwouTWlWmEXAC9DsPQ0S4sr5UnKjSxYO3bqYmm1+jyYwI02JtVdQtb3nvNHn5T+HO7QKdDstTvGsQcFz9k8l08I/E43P1Ejk6mFaepaYs0kjzPW1Gp6wGdsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=/fDG67zCfC4XKgR1ZSzkqLQL/ABiDeeW7EAQbJ6BERg=; b=ArjXapLulXLhFOtwzO0h0kgyuz6S906dklm1dl1tVp1ezri+zEQvkKy/8VVRqQb79VMMSIYs75sKEssMvok4UCZ1JUy7NKEUun+UiyDqcDHnoYceXTvFBSyLHWxVUuSgjs0LsfQFwJp14PtXKDpT53hz5cR+mwUYVLTHQdqRFDsfgdMhGcSQ2YCcAFTqyS6NPdBUddzfu/tpRdGN51s/iPy9ZZt06llTePxXHqKy2FZv3A4cSbTh/sEyCe27bd/3DvqOeU5ZWlo+WMo8A2JMox9sVM4cLbM1XQc0oJ5+5z/skw5PXe0UZhxXrT2Cz6c6ZX2pIumuRTvoOi5UO+y5pg== Received: from MW3PR06CA0010.namprd06.prod.outlook.com (2603:10b6:303:2a::15) by BYAPR12MB3512.namprd12.prod.outlook.com (2603:10b6:a03:134::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Wed, 2 Mar 2022 01:34:40 +0000 Received: from CO1NAM11FT064.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2a:cafe::75) by MW3PR06CA0010.outlook.office365.com (2603:10b6:303:2a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22 via Frontend Transport; Wed, 2 Mar 2022 01:34:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT064.mail.protection.outlook.com (10.13.175.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5038.14 via Frontend Transport; Wed, 2 Mar 2022 01:34:39 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 2 Mar 2022 01:34:39 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9; Tue, 1 Mar 2022 17:34:37 -0800 Received: from nvidia.com (10.127.8.11) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.9 via Frontend Transport; Tue, 1 Mar 2022 17:34:36 -0800 From: Dmitry Kozlyuk To: CC: , Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH] net/mlx5: fix modify port action validation Date: Wed, 2 Mar 2022 03:34:29 +0200 Message-ID: <20220302013429.99879-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b53426b3-4234-497c-8d3f-08d9fbecd19d X-MS-TrafficTypeDiagnostic: BYAPR12MB3512:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GXBLa+4OiYAXE+QmEwnWMlWtyVERkK/ws65U3K9Z8afdwf5lV+i1Jorbg3Ah9If9Nhqf0z/0SRViPdog5DChIUXJkQRFb37Kvzh5ZCNa/nkF5qwWshs6VSK23j63zsnHO+vJ5RgIbY1Ub4Sbx04hpTSOn9EnQond/1uprptZDdG3b9AuEQ60s35tpJE8TVzt/6YNusVkixJmhV63CSpJ18lPMV7YKfkAIzMkYntAefuKhCE60SLbGJxi8+PM9d+yUJhc6aGCsOWHGCxcmFCVteVJxJ9yc8fbyWjnJ2KGSnMPhZaKblkSwGQJ17BLULoEN4Xa8GpkeD9o8kdWxg60ByakCwWtdBoBgaU1vbD2/3XFPNOtju0LpvOzAKCGnGMGbtHqaNt8N/Kg7vLqiLjjXnFeuIpS2WEEXHmMo1ICgyqR20uGdsid+rKiCVvIl4hNSUJxUvcUdCmJbv6IEeTtFs7MbBRTDwjRLOZJiqG0OpkIXL9PJH0A72hwFrwxh+cNJpwkDvFdRDnUGrRvqz1xaTLMcywigmRHEYvZKAiHRfQiHB5K/7AgzHLBqa+01PhYgX+T+6J6PJgKySK/1gyyNozVdmqmivD3ufjlGWW10wEfpcOX/B9GOvCuwatNSqmjwRh0YX/l4uJL5dAv6+t786phxwkzLXlsefapMmwTzHkdvs/mVNzYMS2bycbHAxdbuXh3/boE1Ohqf27K9CmKSw== X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(81166007)(6666004)(36756003)(356005)(7696005)(36860700001)(40460700003)(47076005)(83380400001)(508600001)(55016003)(426003)(336012)(54906003)(6916009)(107886003)(86362001)(316002)(1076003)(5660300002)(4744005)(6286002)(26005)(186003)(8676002)(82310400004)(70586007)(70206006)(2906002)(2616005)(450100002)(4326008)(8936002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 01:34:39.6003 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b53426b3-4234-497c-8d3f-08d9fbecd19d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT064.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3512 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 Certain flows containing a modify header action for an L4 port could be erroneously rejected as invalid, because this action was counted as consuming two HW actions, while it only requires one. Fixes: 72a944dba163 ("net/mlx5: fix header modify action validation") Cc: stable@dpdk.org Signed-off-by: Dmitry Kozlyuk Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h index e510921a3f..e3af8fcdf9 100644 --- a/drivers/net/mlx5/mlx5_flow.h +++ b/drivers/net/mlx5/mlx5_flow.h @@ -427,7 +427,7 @@ enum mlx5_feature_name { #define MLX5_ACT_NUM_MDF_IPV6 4 #define MLX5_ACT_NUM_MDF_MAC 2 #define MLX5_ACT_NUM_MDF_VID 1 -#define MLX5_ACT_NUM_MDF_PORT 2 +#define MLX5_ACT_NUM_MDF_PORT 1 #define MLX5_ACT_NUM_MDF_TTL 1 #define MLX5_ACT_NUM_DEC_TTL MLX5_ACT_NUM_MDF_TTL #define MLX5_ACT_NUM_MDF_TCPSEQ 1 -- 2.25.1