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 3E39EA0C43 for ; Sun, 14 Nov 2021 16:36:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E6EF41145; Sun, 14 Nov 2021 16:36:43 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2040.outbound.protection.outlook.com [40.107.237.40]) by mails.dpdk.org (Postfix) with ESMTP id 6369A41142; Sun, 14 Nov 2021 16:36:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DtJBrAsbb9BvIG19zCXBA9G6kxeoCEe9l/SI3RbiDdOU6RFwP+07sE/eb5NKMH1t1VcS1fdC3MOYBfKoHeDNy6KcDeubCaEpU7m7YrLVfOGJo33y1sqEsqrzqdDnHpCwsak9mTvuF0lU2qgQ01Kd6LBA/+gRo9Ot1rUwY9PJfK3hye6SlddnJRxAlg5/pVHnRg0b3gvbgvAltC+E7ohhyjJ/huPIV4yIcW4KhuyfdMTanLFEuBj4jMAXp3Tyre0ID2O6BZRvPGMzgOqlBjFioregvqNyW1KvEU/rF6ZslNQmCffe+GDpFgy3WseagffyZq0+T3YND2xYOR41aBcY2w== 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=SmGNdP0kNqroNf3E2cy2I3VUYAtHuJPXhW5vipPWE0E=; b=AJw2kKiABCbltmfM9+jBgkshjYL+86guGDOuct1OY67rCfuTX9eFw48W7Z8oh2zT6AVLmRbnTSAz5rOjIQwbZoS5mA36XsLk9oksus3AaldFFqwLLvriM8D7HFx/0UCo5MnOMCjill3m/Zy/vvSzBrpcBkm48sF+vdkYRyZefKbpvBcoaziIEcwEZpvoVI03Fwtu1gT9E/1ZCBb1mFzPVqKS0NcGsPG49aqtpvZ7tDzc0qCHBWlodzq7Nk+JutLBPJL7L5uSo6nYvizysy2OrqLea5vBmcGPdPslKHUDR2OwwD0foBWSStuH+HgNkM3NUtFMO0IozRLtl8/kUgdbKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=6wind.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=SmGNdP0kNqroNf3E2cy2I3VUYAtHuJPXhW5vipPWE0E=; b=HoEFiVCqcjz32DWmPX1+WtsITLY9uxYRkITOa6ljQ1U8P/5J6t2XyF2XbswD7SkiSvxLhg8L4nsYn2q8Qc7H73wVjxWB5n/AxipvyhX+wPX3UQYSxNM0ccmdbqiD1Cc2+Z3PpTHpwVFfow89cZgG6Pq7MImg4euAo8LfpyWnUBCM2CGjsTq1WmuleNEUr2nrVKoHb8YzQe29hCw+X9wlpX5d5Q2NEVOnlvzVurPVI32UsHUI8IWfkGl7t3QQT4HDgCEPvHGXdmIigeX6Udf3PuQJIy6ca6zlbSdVvyXVgZoicGEtne4VJm7+nfUYSPzqy3EOP9TY1N9yheVQ7a9t0w== Received: from DM6PR05CA0059.namprd05.prod.outlook.com (2603:10b6:5:335::28) by BN9PR12MB5337.namprd12.prod.outlook.com (2603:10b6:408:102::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15; Sun, 14 Nov 2021 15:36:40 +0000 Received: from DM6NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:5:335:cafe::fc) by DM6PR05CA0059.outlook.office365.com (2603:10b6:5:335::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.18 via Frontend Transport; Sun, 14 Nov 2021 15:36:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) 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.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 DM6NAM11FT021.mail.protection.outlook.com (10.13.173.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Sun, 14 Nov 2021 15:36:39 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 14 Nov 2021 15:36:35 +0000 From: Gregory Etelson To: , CC: , , , "Viacheslav Ovsiienko" , Yongseok Koh , "Nelio Laranjeiro" Subject: [PATCH 3/5] net/mlx5: fix RSS expansion scheme for GRE header Date: Sun, 14 Nov 2021 17:36:14 +0200 Message-ID: <20211114153617.25085-3-getelson@nvidia.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211114153617.25085-1-getelson@nvidia.com> References: <20211114153617.25085-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a03a7851-8a26-45b9-f47e-08d9a7848d6c X-MS-TrafficTypeDiagnostic: BN9PR12MB5337: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: McJQt7FU3hTax1Pfv1fn6lyc9oJ7CQPwoc9xgKmY1em3kWBm3q00zWqOj1BvM9B0J6d5N1Qc+AP069+LCs+841WntVoH3aXJXpHtBf3NtarQeZZ/7iaDihyEb014m295hhaNwCN0srEz3tySLu5gL96tdElabBVgqmJsjwRrDKdDLwIp/V53NcsdKpvxoqrGrm/gw/x4ZCRx+zU6hF1GE9HvOECMvxQrHpYTIvQ9hXvCe6QVwasMSlUaFYrNDCptXF2/Qv2JL2UKNmpYAaY0cmyzNhstPfuLVqxCwgEJk2pLGnS8vxrZr+RzRGn8JwsS/7BJUPumfEKsAZCnxUtuzO1/Y4EgOyepF7fHPRQt8lwUs5WlhEid6cfa2pNrzdXvEKjr6Iy3kigsVxBlTK5eLKTaytvFaoIoRX7Y+YFt8+4x/QAUVCAuUEfUXXuWamMsf4cTlwWFUNdHxod5slr3bNfkxI1bLlFZfD/zZ+6DK9lDeWpg6eEKhF3ej1gnZGCQwjzckrvxsx/L1SHCoiyi7UH32nMjBwwkoXyTTzepg6ZlZMHai9XYAil5Qok9PRdmvPdY5C7f1wY5WFDLnGVi0in091BjKy6BeNFj1lfMV7j3QIXUaj17JnsXNXRdZj+o0pdBwKAzBhk6g/xoxtsm9db3ejGXfo5yvA6ruiANO8scrOTQrWuPqfeBXsBYWDiEufEEoX6wr3fiM1N4o75ZDQ== 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)(36840700001)(46966006)(55016002)(110136005)(86362001)(82310400003)(316002)(36860700001)(47076005)(7636003)(2906002)(7049001)(54906003)(26005)(70586007)(70206006)(186003)(426003)(5660300002)(16526019)(83380400001)(7696005)(1076003)(356005)(2616005)(6286002)(8936002)(508600001)(4744005)(8676002)(6666004)(4326008)(36756003)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2021 15:36:39.7167 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a03a7851-8a26-45b9-f47e-08d9a7848d6c 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: DM6NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5337 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org RFC-2784 allows any valid Ethernet type in GRE protocol type field. Add Ethernet to GRE RSS expansion. Cc: stable@dpdk.org Fixes: f4b901a46aec ("net/mlx5: add flow GRE item") Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 205fe19cdd..43598f92ee 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -654,7 +654,8 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { .type = RTE_FLOW_ITEM_TYPE_VXLAN_GPE, }, [MLX5_EXPANSION_GRE] = { - .next = MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_IPV4, + .next = MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH, + MLX5_EXPANSION_IPV4, MLX5_EXPANSION_IPV6, MLX5_EXPANSION_GRE_KEY, MLX5_EXPANSION_MPLS), -- 2.33.1