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 01AA84389F; Fri, 12 Jan 2024 09:03:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84F614064A; Fri, 12 Jan 2024 09:03:00 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2073.outbound.protection.outlook.com [40.107.95.73]) by mails.dpdk.org (Postfix) with ESMTP id C374D4028C for ; Fri, 12 Jan 2024 09:02:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hGcH02HPnswOYbGvLu+eJXHKcJwTkzlOUExHb7//fUwPez5m7gaCfmQfvhNJH+FtuLQVAup+OcXYxsbvcisXHzXYhwMQy6okoDrLHyEbuSor7D7dGxBgEjkIoynwNDp5XY9U9Luwl1q7v65nspx6d1LfVTNnE8M2xKCcDWUqtBClggCAis/381PcaM4396f8vT17qOBHmDzHuXkNLEINmiAbb77Nsbq9CNGSNae8i7NAO0s/CKGN7gl31nhd4iloHyMGEvTPHPBEvhzOk4foIATJS0bWGx84JSI8PFn1ybFFgvKRvVJgGDVU9RtpiSgSbZcyMYnFQ+LeQiqsgS+dcA== 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=8/7kZVq0nN1PAsCFeA+JQbJNmRtrfJYzj8pXeYc2KcI=; b=BbFVm17Ejp1uj9zNKsZCnNO7iyIGN+V82qRFKpt2o+8GkiY7RwoeL4WlofcBRjjYpqtzYXTk1BTvUlxAjKpGp6nBolDdRnhv1jGkUyo5W/lCNnJNgfk+aoqZwbC3lJB7NTBsZA4qMfYaTeiuZPJNdHooLpD3GxNPmEhNEeZAcszD4/Kwg0ySD0Q2Dcym5LB4yVZZ6DDI5zeMm4YsB9EEUIizBBynzUcf5OvmcWtp8mNEQ55X6zGhcoF0F8DDWNabONmmLpOQUY4JSHNqBGcZ8bjoujVRTrRB2rZebJPD4A2XPTd9Z1kVgURT+HRs7x6g0qbn1F8Qn9nWPxapgYmKYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 (0) 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=8/7kZVq0nN1PAsCFeA+JQbJNmRtrfJYzj8pXeYc2KcI=; b=gIBOMITOwJ9JYoiPR4CQb5fcmTmBnrRJfYyArkDkZTrbBCJ7DBHV3WhenWNIQaCoE3CWmm6PKRTYZYQ7KbZSuVrY23kLwXhsmhCDk2vLoOgQud2pGVLYSAsuSLe+jA2GivtR3Rg1zDy6u8FUUkDJo8uL0auzgclT0ihq3bCFq804mZCnY5cI9Rt67cvEQFtZefbBcpnbCTNHGPamDAAsMaMnQeXZUKG9n6LZQwFA8YDG/60t8rZj9+oBPi9qIkXSSYrZTVbR18sM3k8YrVX1Ta06xyCqEyFLpRKwhLu5Vzz3T5ZQ2t89cp1J64JVQDl8KZDp+g4ea3L+6epc6sExWQ== Received: from DM6PR02CA0057.namprd02.prod.outlook.com (2603:10b6:5:177::34) by DM4PR12MB5038.namprd12.prod.outlook.com (2603:10b6:5:389::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Fri, 12 Jan 2024 08:02:56 +0000 Received: from CY4PEPF0000E9D8.namprd05.prod.outlook.com (2603:10b6:5:177:cafe::d0) by DM6PR02CA0057.outlook.office365.com (2603:10b6:5:177::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21 via Frontend Transport; Fri, 12 Jan 2024 08:02:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000E9D8.mail.protection.outlook.com (10.167.241.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.14 via Frontend Transport; Fri, 12 Jan 2024 08:02:56 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Fri, 12 Jan 2024 00:02:43 -0800 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Fri, 12 Jan 2024 00:02:39 -0800 From: Gavin Li To: , , , , , , , , CC: , Subject: [V1 1/5] net/mlx5: support VXLAN-GPE flags matching Date: Fri, 12 Jan 2024 10:02:06 +0200 Message-ID: <20240112080210.1288356-2-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240112080210.1288356-1-gavinl@nvidia.com> References: <20240112080210.1288356-1-gavinl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D8:EE_|DM4PR12MB5038:EE_ X-MS-Office365-Filtering-Correlation-Id: d586ed53-266b-4564-83ac-08dc1344e2e2 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K9Ag+JqjnuviUnGt+cK5mahxlhjYm9nRMiRdU3qRNOtWir9zSykJ4RlIdrrXveGXYFnTvxfk2jTpfUcaszjVyr4DumKdLYftyA+TrFcnpIEfzvuHANUolZ8VyOgDjGYMdtZhacfYcIm8J8/9Wdsng+vzofHFvsK3R4zXZsG2PAHkG21gElUeOOAKi8kdSkqNsBrl8sE14AzsLQYveZMradwMf9bNHG8rcyP6YSfb6w8Y9kpZM26luAMbxolW8aNjSsLJ3abO8GxaqbRQTFPXBjySTCURy4YJ0YCxqGtq5azjrkmZsBbPQ+ihr3r8MkrHzSfGInN1crHNlyrmHHZqbwfMTgXDKjAuBxJMNgdV6bCqirgg7suToAq1/Ja6mY20Y9MquwGVKGkg8c5fXHy0ZXnAUGNbV93uvdIy0zY7ov4R9SqpaXw2nx23IvKsdpWnPJpPPw2oJDj4J3u3GixP6MfHmlBM+bWsPJrh3SJKrMq9XzUdCvWCPHo3rpf8Byyu9eprTG6lbDUX9KEzeXZ/m7xr/IqFjcjKucBl9XWF2k6gLpnxYJDj0j5IDyucHtKLJfDpBADwdiGLFO1dSWYtR5lbObD8Tnedg6QZa/G7FTGrPJykbhe/0iV5O5bprcV5gg80oY50ebLmssO8Uv8amiapAlTbNnFJdSxqgmPX+VqZndxaYjja9YVLAQiW9AmO66b8q8yfx26IppWNv/YMb6sP2oRD/TfO1Kw+rJ1IXT0NlfLeATzTaLyGslmYNroz X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(346002)(376002)(396003)(39860400002)(136003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(82310400011)(46966006)(36840700001)(40470700004)(83380400001)(336012)(426003)(6286002)(1076003)(5660300002)(16526019)(107886003)(26005)(2616005)(82740400003)(47076005)(8936002)(4326008)(4744005)(2906002)(110136005)(7696005)(6636002)(8676002)(54906003)(6666004)(478600001)(41300700001)(70206006)(36756003)(86362001)(316002)(70586007)(36860700001)(7636003)(356005)(40460700003)(40480700001)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 08:02:56.3248 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d586ed53-266b-4564-83ac-08dc1344e2e2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5038 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 This commit adds support for matching on the flags field of VXLAN-GPE header (the first 8-bits). Signed-off-by: Gavin Li Acked-by: Dariusz Sosnowski --- 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 85e8c77c81..ffa183dc1b 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -3292,6 +3292,7 @@ mlx5_flow_validate_item_vxlan_gpe(const struct rte_flow_item *item, struct rte_flow_item_vxlan_gpe nic_mask = { .vni = "\xff\xff\xff", .protocol = 0xff, + .flags = 0xff, }; if (!priv->sh->config.l3_vxlan_en) -- 2.39.1