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 B3D3DA0548 for ; Thu, 2 Dec 2021 17:00:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 848E34067B; Thu, 2 Dec 2021 17:00:53 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2068.outbound.protection.outlook.com [40.107.237.68]) by mails.dpdk.org (Postfix) with ESMTP id 84FED4067B for ; Thu, 2 Dec 2021 17:00:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ikd6hj3vSq7L9rs2qofHhGKy2kY2qrLxBa/tgMXK6tn+SAR3oh0EibX52V5Z4TRVXhdbLi6scf8tU7ty5kl9ticEopwDz5gAl/TZExFUBuZwdpG3ZS9XZic3GugLUVMTQAmBMtmglAQCb1iE9ZWnociZY0k+SVFRgO2T5YNFUdbYWcdpDtDGA1IxlW5Nn+HMdpmFd2o/bLXBFDer1WMqHFWdWiqVhfsOpZURdHVUKaESVNyQYTy+KPOKYBgekDkjhIvKsK2sZPkqjcB9VRn3s+mHK0NU13SffaZ6VwCiZfOL9PyvrOyemxOnVXD5n6xCk/7xRMJmWCgn11I8mS2nvA== 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=jgxD6x5EkPiOf73YZyHyoZVSDQQ1SB76QW7ZL9CeXuE=; b=io5QaMEAsbOVBkwfb1b5rC/Xci4nOHqNo+7qbUbkH1WLYhliNO6VDix/kqMlGXid4py9Rg1eQctYw7Wu1ayY6OkMucZZCFfAgJs6jiNAqH4XieV4dcQNkfZxi+QtmyrWLwmoiXFTHxaW6VRIAcormWJ3eZAG5LtZQhp4Lk5kE2+zia3vE3jDRsaZ1cuvi0jZXJkJQiNsoHYdDzxh46BJVEu0npo5CRH6WlYi2gJlHNqXW6hrBYlScOdp96vgo8X8gj4Q2MGLZiv1paIF5zhfKCaPxO7aU1HHIHLa9Dzd0dxbYSkhZ3D9rmX6MVPMvlyZy8xQcMzeqmuLd6Q3i8iyaQ== 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=jgxD6x5EkPiOf73YZyHyoZVSDQQ1SB76QW7ZL9CeXuE=; b=PGvHuMjlBKTHmdb5nnIqbZyn+Ko2GbqQ+GgDBje+fU/X9FoU7x7BQSglr8AFB8Acana9YkbLLumWKmddawc6DLjAc9lyWFJtNTYjkwnUnIUa9woNjPdECAhV+UBL8dRXeBvO+wdSq5QyPT+YkhNps4s7etYK+sSvL59TIzoEbtUN/XzUFvXv/+xfb8HYTF/n5j5m/rOuBTBtEl+EPW2bMshUhzqlpA4kuYaz6rbKEhECdb3ZitvCVKnLbhH+/+laN/YwAggVBC08aF4FbIwh5w4gX76y3uNM1C43TwZRMcD0EDVvzJ5qnhz5jxiMurMPGFe91i94bbyCDccEaBe6xw== Received: from BN9PR03CA0338.namprd03.prod.outlook.com (2603:10b6:408:f6::13) by DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Thu, 2 Dec 2021 16:00:50 +0000 Received: from BN8NAM11FT068.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f6:cafe::71) by BN9PR03CA0338.outlook.office365.com (2603:10b6:408:f6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23 via Frontend Transport; Thu, 2 Dec 2021 16:00:50 +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 BN8NAM11FT068.mail.protection.outlook.com (10.13.177.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4755.13 via Frontend Transport; Thu, 2 Dec 2021 16:00:49 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 2 Dec 2021 16:00:49 +0000 Received: from nvidia.com (172.20.187.6) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.9; Thu, 2 Dec 2021 08:00:46 -0800 From: Gregory Etelson To: , CC: Viacheslav Ovsiienko , Matan Azrad , Shahaf Shuler , Yongseok Koh , Nelio Laranjeiro Subject: [PATCH 19.11 2/6] net/mlx5: fix RSS expansion scheme for GRE header Date: Thu, 2 Dec 2021 18:00:15 +0200 Message-ID: <20211202160019.26453-2-getelson@nvidia.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211202160019.26453-1-getelson@nvidia.com> References: <20211202160019.26453-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d320f6d5-727d-45f1-e969-08d9b5ace91a X-MS-TrafficTypeDiagnostic: DM6PR12MB3753: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:169; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 99bO5PqkcFPZ8sUHnDEZRwYs38QR6l+Y+UNGeTo75k0Dix38FNO32ufD428TyZOyjJ4q4iYxsfRdToCFpcZswPjzJiu9bY+gzDayEq/lkSsqEKBvvOaLzXlkwuCzMkwA/X6EfbNXW3SyR2eyAYi74RizuU9bdmzg3iCTdLCuR2zekLmMZBa7+go0YVQGcjpIyEhI73qm0Lsr/z1jtuVE0eOCRLjTNBwtvVHLgaxykxE2OcWIgd8BwUTE09n8on4TOjPTYbajCryzmfD5FBKtuqzeyKOuAKHQZCi7UKIy0Q66LrSPWYPzL27gaHxMGyxMHRBwnWyTYbVYu0UYo0Fx2zW+ApUJ7HprmW/CccA40rbGfdLi6JTwPiVNIK0OvvvhcSBc+/QAYgr7sDHOvrvhd3keLBqrDwtQkGB46MMDeKz1uEneX9obiRIU6sHJUE7W3Ed7XOmXJo48rxRHLp6KR8eN/4/qjXNg0+rxlvbsd14z4xSX8HgLZPt78Uojh+gqoFZF0thJLbMt3rCpvPNiLueJfenkD5Y0MBiiHzfvuXbJYkTmwFcvcf61Fxb/F/wMRIhKdV0UglL/zasgy9rMpM/XdJ9QH6vaGhlHkBXafhA//k2JdtHSCdpa3vfM9XfVCCmkwv9WmZLTmAfhyawT+gPv859wNxyoEBZ/AT8LMj7fp1XQxocCshNsuNP8/pYmnUaHOirzZE3iNQy1pcG7iT2H39/dflCpNXBVTMMgSg/dGf44zhzhXiogGw/gpP1kmEQ7XA7+P55ffCkeg+vktQ== 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)(40470700001)(186003)(26005)(36756003)(86362001)(7049001)(16526019)(7636003)(508600001)(54906003)(6666004)(1076003)(5660300002)(82310400004)(6286002)(47076005)(356005)(4326008)(55016003)(8676002)(36860700001)(4744005)(110136005)(316002)(2906002)(426003)(40460700001)(7696005)(70586007)(70206006)(8936002)(83380400001)(336012)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2021 16:00:49.7775 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d320f6d5-727d-45f1-e969-08d9b5ace91a 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: BN8NAM11FT068.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3753 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 [ upstream commit a21d616b99ffc5810a4b5333e5efdf1ddff21405 ] RFC-2784 allows any valid Ethernet type in GRE protocol type field. Add Ethernet to GRE RSS expansion. Fixes: f4b901a46aec ("net/mlx5: add flow GRE item") Cc: stable@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Viacheslav Ovsiienko --- 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 0805bdb8c9..eff0057a60 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -180,7 +180,8 @@ static const struct rte_flow_expand_node mlx5_support_expansion[] = { .type = RTE_FLOW_ITEM_TYPE_VXLAN_GPE, }, [MLX5_EXPANSION_GRE] = { - .next = RTE_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_IPV4, + .next = RTE_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH, + MLX5_EXPANSION_IPV4, MLX5_EXPANSION_IPV6, MLX5_EXPANSION_GRE_KEY, MLX5_EXPANSION_MPLS), -- 2.34.0