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 D25E0428F8 for ; Sun, 9 Apr 2023 17:31:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC16C41149; Sun, 9 Apr 2023 17:31:08 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2080.outbound.protection.outlook.com [40.107.237.80]) by mails.dpdk.org (Postfix) with ESMTP id B14AC42BFE for ; Sun, 9 Apr 2023 17:31:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bcKB0q3kkTXXQtfz0irNCoBiX4nRLqrVej2FCEMKoSfR/BEca6Gy0r96oLzCZTjPQOhQ/s/mL3EDmKIBRBh3hBcbHS+5vA/X/6oHf8fbpFWJ65umyaf0SLnC445KfXIxVrrIk82GQQ1II3AUdO1x5GFh7uVi0KY6v9ADpRQRuUm0WATf54PPvVal7AE/wbIBemM39Te9bngX7amq2NCuF1qXbPnElmSWp6qxVwt7JqSFJzR1Fg5JPqGkCj/z0wzQ4WN4jP/1Te0JjH39BxhZ2Ehh/NJBpoaEP87ySTLJmqe8JiT+4jKzwiVKg+jUl+yQOXyUQ7vxomE5RiBzulgDdg== 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=BMJ3JvqkjBF7kMn1eyGv3n76Me+X+jubXWFwYsS8hnc=; b=MGxyfeIHgzD2Pm1VW8mV6TieUIbiYsRwMkt8DDu375S0b3SOStMc+Sc/t9ixnD3lyMJP5ZFmr3KuAB6steE1YkuBuTx5DasxrZck3aOcEbGpQtGqdaQW5GMeRJp0cM0DLhjjwTpxQOVOTq+Vsh/XI+e0qrSFrJRjxMXrvTv7TRAqnTg4BSFfEZlKWIx12CoKlx+poduLLpnqJqGnuxQqhSB3J8p6fih7sEJb+KEq+RBmnhZzCkWSyts3pc1w8ApzHzkTR4mAUbvYDlOGIUEEwMvPRrEz+Z/ElZb2YPBbh+KYF4wPZ+AUBHX0X5CBLN0llX/TYKnM3j6k42sEwmd36A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com 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=BMJ3JvqkjBF7kMn1eyGv3n76Me+X+jubXWFwYsS8hnc=; b=gbg8l8zwYnYXmUpeZ8pdKtcOCc4a7gdl3byEQ8KHezJgWo9J3UQuuhlDBEqYV0vPnNMf6kda5HARzR+HTo87N9Sz2IvH/519d2eihF7FQaWTOiuCtYI/SsONjEaDN64MIn4uw5Tk4yG1eEr7a4fACCkHCxQBOmNWg58eIEQ01gd0s6Lyzk2u7CLPxnOtqyug1X69WlFDsunkgB0LQeRFNVPoceyYWTBr/qmCGKLHnE4NbPheoyZgGFRNisSX6jyXBkX5S7YJ6StUZ1wXk6I8VAsvdU6SHaRnZ7RXA1DK8CCfbOMD9YhNqLZ9SM6//nj4fwJiJUa3r3SsHBdpxUOE5A== Received: from BN9PR03CA0116.namprd03.prod.outlook.com (2603:10b6:408:fd::31) by LV2PR12MB5991.namprd12.prod.outlook.com (2603:10b6:408:14f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Sun, 9 Apr 2023 15:31:06 +0000 Received: from BN8NAM11FT024.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fd:cafe::b2) by BN9PR03CA0116.outlook.office365.com (2603:10b6:408:fd::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:31:06 +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 BN8NAM11FT024.mail.protection.outlook.com (10.13.177.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:31:06 +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.5; Sun, 9 Apr 2023 08:30:54 -0700 Received: from nvidia.com (10.126.230.37) 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.37; Sun, 9 Apr 2023 08:30:53 -0700 From: Xueming Li To: Yogesh Jangra CC: Cristian Dumitrescu , dpdk stable Subject: patch 'table: fix action selector group size log2 setting' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:24:10 +0800 Message-ID: <20230409152529.5308-63-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT024:EE_|LV2PR12MB5991:EE_ X-MS-Office365-Filtering-Correlation-Id: 44a86380-aa13-4aa8-7952-08db390f6fa3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +XVFmVZ5+H123NCd+BTnR/T9SAe6HTyAlv61Rgs16MqXk3QIyTEqFSuRUa7pq7KVDsnVO7joE+kzZqgHvT9d25kBlCSRV2ggbIInHQvdpJyz4m1O0shpYYqUZqH/H35B8JMbrAEjBDNq4oc1W9LHQ/EA6r3iCceAbA19ByQmJ4ZbEo13mTRxt62aLuru2wfWTPJHGqNEPnswP+fyYnXCuqkRiyR0l5xx3cZSIaRtTC2KSCQbCv+biO0SpSQTXADUrtG7Ja5CRrvhpC4kRYVdZm8eebM1OlyjSqDft4VN5l/6iekbo3UCjdnAWZi3kJ8pZAv6Q689Zvd446bEbLYgXSI7OygR4yAxw2EwUnjbDjPvRTJMrUHf+gjC4/NEeKCwlJSnQw7E0PKNiL7rZ5aZ062joZcsO0JcpDgT05G2+huTEuGQG5uF78DD2qzLwf7fI1xvMb6Ks151lViXmuTZod79f+oc9nbwXMz3h5ozdMpf24B3tkQGCaMb6He6j0tc8v4GdtOOjkjYR0VqSS6ZYOilZuZjuMwxMtkZE0FliVnGRrKdM1MKnHAAiapJuJRNisQtzJg8Je6kjpkDKp237Tfb8CVUQUayYkKcqaNcQuYl+SapRS+3+Ft9mRVrixiC+DZ58wQUXCYRoE2hVEFb8LLCFN5TgzgM6HqCiotcaa0KG9EMc0cMt42mbF6sCCAJdN7zVwGplK+PYd5wGXpS9CqKdzvgeqXfIVgVy9PGt/77b9CeHLDEL2Cs59VsY20f31xfqKKfYuXFfprrpR11oUShvj0eeWSoeSph8xmcYQs= 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:(13230028)(4636009)(39860400002)(396003)(136003)(346002)(376002)(451199021)(46966006)(36840700001)(966005)(7696005)(8676002)(6916009)(4326008)(54906003)(478600001)(70206006)(41300700001)(316002)(70586007)(86362001)(36756003)(83380400001)(47076005)(2616005)(426003)(336012)(1076003)(26005)(6666004)(53546011)(8936002)(5660300002)(2906002)(82310400005)(55016003)(40480700001)(82740400003)(356005)(7636003)(186003)(6286002)(16526019)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:31:06.1303 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44a86380-aa13-4aa8-7952-08db390f6fa3 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: BN8NAM11FT024.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5991 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 Hi, FYI, your patch has been queued to stable release 22.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 04/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/cb4baf72a46b98fc6110a6382c299f11005afab6 Thanks. Xueming Li --- >From cb4baf72a46b98fc6110a6382c299f11005afab6 Mon Sep 17 00:00:00 2001 From: Yogesh Jangra Date: Thu, 9 Mar 2023 13:58:42 +0000 Subject: [PATCH] table: fix action selector group size log2 setting Cc: Xueming Li [ upstream commit 44bcb29f5c1b5b5af1942dee58ba16fba78c35f0 ] The incorrect variable for the number of groups was used, so in the case of values not power of 2 the incorrect result was produced. Fixes: f7598a62d114 ("table: support selector table") Signed-off-by: Yogesh Jangra Acked-by: Cristian Dumitrescu --- lib/table/rte_swx_table_selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/table/rte_swx_table_selector.c b/lib/table/rte_swx_table_selector.c index ad99f18453..18e021fe6f 100644 --- a/lib/table/rte_swx_table_selector.c +++ b/lib/table/rte_swx_table_selector.c @@ -232,7 +232,7 @@ table_params_copy(struct table *t, struct rte_swx_table_selector_params *params) t->params.n_members_per_group_max = rte_align32pow2(params->n_members_per_group_max); for (i = 0; i < 32; i++) - if (params->n_members_per_group_max == 1U << i) + if (t->params.n_members_per_group_max == 1U << i) t->n_members_per_group_max_log2 = i; /* t->params.selector_mask */ -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:40.371580900 +0800 +++ 0062-table-fix-action-selector-group-size-log2-setting.patch 2023-04-09 21:45:38.669042200 +0800 @@ -1 +1 @@ -From 44bcb29f5c1b5b5af1942dee58ba16fba78c35f0 Mon Sep 17 00:00:00 2001 +From cb4baf72a46b98fc6110a6382c299f11005afab6 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 44bcb29f5c1b5b5af1942dee58ba16fba78c35f0 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org