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 70917A0A0E for ; Mon, 10 May 2021 18:05:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67C2840140; Mon, 10 May 2021 18:05:08 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2068.outbound.protection.outlook.com [40.107.92.68]) by mails.dpdk.org (Postfix) with ESMTP id 8086141110 for ; Mon, 10 May 2021 18:05:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nmdd+i4miKWMR0Fji366y0zEKiagvwddZUnbX8NpqNX5GwocnrhSn6wljv/lVT/KLHvOwt2YAvk2vTC76L05rGV82fl1Ca+tfzD24JYs5sX1UGAKiBtzp2CW3JKxpNHgzzZkruunipxDGYPvEbxeeJ6og0uBRSFtyYbgrBf2rit+SjSrI6droN1GfjG5aWBGll8XPC+pm9pvEQrR3m6qiTVOyB1QHjk28PxPERipaaCdBKlVvoNPLUObgbPOo8//MZNn3jrc+a77rwbmHIK+9wjG1Ru775bdlp0p9ePY8Wzk/wYetG4aC7PUeF2s9oyX0uNQAe/4QLBDfNmHXf/glw== 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=/NvD/l5zu8nzU5cdTLRbz+lXCfYJWw/4W7G3N0u/T8o=; b=Wp9XaZVZZTRMIut8v8s+sMYWadRSgmLwGOIdJZ6upVmrVZ4wtheTn680XIbGKw/OglCjhqEQ2zrcKWo/m1NXpjTE5UZK31Fpwnm40zX+stVYDmns7RDuAuWCtdBGfaeQmJkn/NtT2NOCQCfeeCaRLC7AWok3Ksu4ghxSw/+cFTYeyKSRkRf8oWaXN8Trtd/iEl0L01X7rJLBpiWBnAq4gx9TaexNmAImJXJ4sGGkvT1lclDtGvopCyQQo10pFX6qEa0xh1Ry22xenf+INVydqlZBtecFP+ZOLQF7R9ernbF6TnA84Pd4DpmVk8/QrYFnRcL+fo6UMc0lmW34rCRqpg== 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=/NvD/l5zu8nzU5cdTLRbz+lXCfYJWw/4W7G3N0u/T8o=; b=dpAvP6LJ7ffDXxeAsw7dpJkWrMMUHPnjgjIlHRXGivkKJWxnoBNr3vYnAb2kz8KzARIGxuGMC4EOqC1uZ+rDNThoz7zBpbmwqufAtxdqHYWqohbdYL3sgMbvOZs1RSuKY96RK4chC7gCjtH3yG/vNqf8XwhyiCwqhOSvEbWiOqYWLSUPRJ0W9zZizgGYFmaodbILsgs9+xIyZAsjPg9PNJl57eu0iBnx43185ttE0xmFW3+IlzvXprBJJnZZiR/rvB42wILHPVQmEBTGFDydUey+ly64uFSdUJ6HMtnbj1y1ZxJG16n+0KsuSXkW6HFuGTM0a+ztGB6yeFlcMkRbjQ== Received: from BN6PR21CA0004.namprd21.prod.outlook.com (2603:10b6:404:8e::14) by MN2PR12MB4045.namprd12.prod.outlook.com (2603:10b6:208:1d6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Mon, 10 May 2021 16:05:05 +0000 Received: from BN8NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:404:8e:cafe::6a) by BN6PR21CA0004.outlook.office365.com (2603:10b6:404:8e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.3 via Frontend Transport; Mon, 10 May 2021 16:05:05 +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 BN8NAM11FT048.mail.protection.outlook.com (10.13.177.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:05:05 +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; Mon, 10 May 2021 16:05:02 +0000 From: Xueming Li To: Viacheslav Ovsiienko CC: Luca Boccassi , Matan Azrad , "dpdk stable" Date: Mon, 10 May 2021 23:59:29 +0800 Message-ID: <20210510160258.30982-20-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] 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: e8651387-c824-4ace-f2e9-08d913cd6035 X-MS-TrafficTypeDiagnostic: MN2PR12MB4045: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FISun/2KRqo70keUpVdrA1rMjBVPANxX5uzBefFYsR628CQgtbV1dA8WBKqv/Q3+E+s1+iy0WFRolz3wzzj2zCbmPdqSvzm+WDVX0I8z/czcaRgcB9VkeYbGr9g1BoL/TArzKoZs4dgvFpSK1qAG9E3WK3A8nuQGMvb9EEl6r3rMgpWA37LwLQiwL9TyHIpFJVr/mfzZs/IorM0vuMqBZBomwcbEEHkn4DffksfIq1Q6ra1QuB3DQmoo0Pq+XE3+b4hiuDrCMadUONfL2LTKocks1ytxrHse9N3/waMFQoCjlBkDqCEHHfwzkP5mqqH49gSw+fAR6DEip5sh4FOiFU+GTX2DoOSB0tokbF6PAnm5BcKp0mCfLGc7nPu6TRD8SXyBMl4XrcH1nguUmgtxgTanqhoiCMi/zMNE73UeYFKsKTEmy/F6N4PYNpLkSGi9QGRPGKKrRHL+ErK77hSveH3D5V7Hi9Pbr+phY81ctMjVzpPwgLfyuOYbs9MTLtjTDq/yFVhQu+ToV1u24w5pbYITlrkViakxWFSuwiwJtIju4e7LLdMhFyNw3/z/UTXTgnNSOuA91vpSs8eVNzpKORH/5iDWRicf5rSIUr1gWozb4iUPPkRfUZkFh53kEry1XmQfR9bo7wrBt0N/RvNrwah+R9n9RCYjmXY3afAE/qhHzbQOZmmY30SgamEAef+LHABExcKP3XiRc6GMHhH99CySC8f9LwU1JjcpKN4PTSB+yQ05N4zqY3aGfolX9Vl+QitOly88sjQ8g+rSZ28bfw== 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)(346002)(39860400002)(376002)(396003)(136003)(36840700001)(46966006)(2906002)(6666004)(8676002)(82310400003)(6286002)(5660300002)(6862004)(426003)(8936002)(83380400001)(26005)(53546011)(54906003)(36906005)(316002)(36860700001)(37006003)(1076003)(2616005)(7636003)(86362001)(336012)(478600001)(82740400003)(966005)(47076005)(70206006)(70586007)(7696005)(356005)(6636002)(36756003)(55016002)(186003)(4326008)(16526019); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:05:05.1178 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8651387-c824-4ace-f2e9-08d913cd6035 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: BN8NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4045 Subject: [dpdk-stable] patch 'net/mlx5: fix hashed list size for tunnel flow groups' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/1cac75b516d87568beb9d946a6f8700f422b9d86 Thanks. Xueming Li --- >From 1cac75b516d87568beb9d946a6f8700f422b9d86 Mon Sep 17 00:00:00 2001 From: Viacheslav Ovsiienko Date: Wed, 24 Feb 2021 10:15:14 +0200 Subject: [PATCH] net/mlx5: fix hashed list size for tunnel flow groups Cc: Luca Boccassi [ upstream commit c86e5b90125890f950892e890e8859d87d63140b ] The hashed list size must be the power of 2, otherwise the adjustment is applied and the warning message is emitted. This patch provides the correct list size to eliminate the warning. Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload") Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- 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 cda3ca557c..34dd33ba38 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -7648,7 +7648,8 @@ int mlx5_alloc_tunnel_hub(struct mlx5_dev_ctx_shared *sh) return -ENOMEM; LIST_INIT(&thub->tunnels); rte_spinlock_init(&thub->sl); - thub->groups = mlx5_hlist_create("flow groups", MLX5_MAX_TABLES, 0, + thub->groups = mlx5_hlist_create("flow groups", + rte_align32pow2(MLX5_MAX_TABLES), 0, 0, mlx5_flow_tunnel_grp2tbl_create_cb, NULL, mlx5_flow_tunnel_grp2tbl_remove_cb); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:27.236769700 +0800 +++ 0021-net-mlx5-fix-hashed-list-size-for-tunnel-flow-groups.patch 2021-05-10 23:59:26.340000000 +0800 @@ -1 +1 @@ -From c86e5b90125890f950892e890e8859d87d63140b Mon Sep 17 00:00:00 2001 +From 1cac75b516d87568beb9d946a6f8700f422b9d86 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit c86e5b90125890f950892e890e8859d87d63140b ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 632f46dfde..ab5be3dacc 100644 +index cda3ca557c..34dd33ba38 100644 @@ -24 +26 @@ -@@ -7940,7 +7940,8 @@ int mlx5_alloc_tunnel_hub(struct mlx5_dev_ctx_shared *sh) +@@ -7648,7 +7648,8 @@ int mlx5_alloc_tunnel_hub(struct mlx5_dev_ctx_shared *sh) @@ -32 +34 @@ - mlx5_flow_tunnel_grp2tbl_match_cb, + NULL,