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 142A343B7D for ; Tue, 5 Mar 2024 10:57:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E5144026B; Tue, 5 Mar 2024 10:57:33 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2055.outbound.protection.outlook.com [40.107.244.55]) by mails.dpdk.org (Postfix) with ESMTP id 598E64014F for ; Tue, 5 Mar 2024 10:57:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=frtR2u2imKDaOMktO1u7BYykx9dIBTFkOg8PSOUJqHZe2k7H0FxLY8R2hvWWdlkJniwGtqmwE1hmq2UZ2Lxyh++hIFMM5P3PK44NFuMjn/8gw6XAUUGf92b6hFg7YTJjdHybNDjKThh5S4DxxAi2sI1qZG184rUhbjONlg7LDBXbjWYZR0Q2HDoOvD2wcTE4xljJjYjEeIekE3oYJhetW1zbWkgF/ve9Z1xw/AVr4M2uJi5EKX4JIQKRAwYGjb+fTCWaQdRCdCHJQ/TwUCis1iVXLrvSgDW2OTQaZM/tEMNpntGTy5a7MchynQqeJZaiGJZCR7Ie/h+cl8kJlbW1Tg== 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=P0hzAuYO5SRMemtr+1j2qBOpW+8JpqEOihF2oeIicYo=; b=kINiU8MzYGqF8L0eJhUiheKHpUkAWokLFj0aqPZYSPv5Bpc51A/UwwOkckXKiUpkbxr/VPifKUwY1NP+qjgl7jqYvN3U2PGHpuQFfOS8JesdKd2ojjgwYROyMg3oZx80o9AmeMWjYbR8y09sjsv26Tow/tzdVjW99L2xPom7+WD3sAwb6kTpJU6rmnoAmTu+ImIQFzR6YButXc55hP6lZYwuqvearqQcCJN5M9ntYo+OH7QDNN5t/bKI4X/44iRSBUFwUK5cONPyCLvs+4nWUWbkbFiOv820Snyga7lqFqEI2DOxFr7mDZI9icSNci5z+jKL8g0BActViqOeznal9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=amd.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 (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=P0hzAuYO5SRMemtr+1j2qBOpW+8JpqEOihF2oeIicYo=; b=Dapu8Ebb6rPFvDS4/Ec0GYaRA0zRbpXMCeRqtueAKDzoT9AFfN1Bp569j2znTVUbUFsEIFgUp+TFUoJS5NHcdrYLEgXCflliWxAzC9hVpu/F6gVK8c3nK1vTC6yf+U6Rgkb1fn2vcEUearIdIbROsTU/nrPqWpGAYrgJJ6DbBNaOSFU+kn5P9XIq+/rgD0Iku4bqt8BTkRHyl2eRlY9H8v81J+L67T4ji3/1E0+t566ILBmfUZqyboH84DXj7e/I1v8/fGyhjJU0+WziABJuxtjRnF1XxWbOXNNoLhAhNJV5z78awkGaan4CXU2V0LeqqBMNGJEL+ZzBAkagb3DkEw== Received: from MWH0EPF00056D10.namprd21.prod.outlook.com (2603:10b6:30f:fff2:0:1:0:13) by LV8PR12MB9336.namprd12.prod.outlook.com (2603:10b6:408:208::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Tue, 5 Mar 2024 09:57:27 +0000 Received: from CO1PEPF000042A8.namprd03.prod.outlook.com (2a01:111:f403:c903::) by MWH0EPF00056D10.outlook.office365.com (2603:1036:d20::b) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.4 via Frontend Transport; Tue, 5 Mar 2024 09:57:27 +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 CO1PEPF000042A8.mail.protection.outlook.com (10.167.243.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Tue, 5 Mar 2024 09:57:27 +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; Tue, 5 Mar 2024 01:57:10 -0800 Received: from nvidia.com (10.126.231.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.1258.12; Tue, 5 Mar 2024 01:57:08 -0800 From: Xueming Li To: Akshay Dorwat CC: Andrew Boyer , dpdk stable Subject: patch 'net/ionic: fix RSS query' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:47:23 +0800 Message-ID: <20240305094757.439387-103-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240305094757.439387-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: CO1PEPF000042A8:EE_|LV8PR12MB9336:EE_ X-MS-Office365-Filtering-Correlation-Id: f6aabd29-5137-45be-2e02-08dc3cfaaa0f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EpLpwwfpGU6TZxxi6lECGlnz19Oz5U3SdOr1w3k19wXFmB/7VLtwQEN3ULl2Hg2+gdMZv1lz7iZCb3UC6HKf9bAUvs7+SBppkoyG563zTTuhpipmu3MOUdwSRZ1uhBWk0S+hwz3aHFcYNwe+GDSGKQcWs8jgXHyblRUTgWd+PWtnnwiPwnbdH4r/OpRGnyzQcV2i9fISb0fjuXtxtR0HMzJqVzxy4Kr8X8u/4UVVhC0UPQG6THsQ8iEoWU4QcBQDeOblv8dODJBYYDzXeaB7N0CBIDSPTRJVig9XduJ3HHAcp75/Ouka3bpbZ8vd00WbZVpAMCyMHL7OwZmJclEuYWJA45/KcW/KIjSEqJHRDWnghlJQ62IwpsMGbhDzE/OW92HtgHj5l4JYS5cBATfh1gnUCNLb4h572jM933X6G9LK1UW2HETwQ/Zh8/4TLGRI+hKWj25qDMfmYaEs3aw4O6zuP4zfZ6E/OU4S/5vNPcWo8tqWZR6B83vWTBt8VFXBXzmLujySIoe1B0D+rRY2gGHfzZrhlWUb32crCb5qpJj3valIA29mAnuJt7rgIkA4hLKM1aCtCI7D1r1z2Gt7PR4Jx/MyXBqhB8hCS3TI4FxIKhs3JMxnIjEKSTB62qgmeba0d28OQgqrUmAmKiT6L8BTM/EeA+1dYP3aT7hLSv8qaog+Z2sjxCR7ut/6hFOpuPx3DbHMNLWK+PZPtj7LhvDSmEHlb+Fhldkh8ADU6ncj7gtRkbPbcnHFgevwPGu6 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)(376005)(36860700004)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:57:27.0817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6aabd29-5137-45be-2e02-08dc3cfaaa0f 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: CO1PEPF000042A8.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9336 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 23.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/31/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=9583f634f31a41bf41c38f0b6f60b41c41fd61eb Thanks. Xueming Li --- >From 9583f634f31a41bf41c38f0b6f60b41c41fd61eb Mon Sep 17 00:00:00 2001 From: Akshay Dorwat Date: Tue, 6 Feb 2024 19:13:11 -0800 Subject: [PATCH] net/ionic: fix RSS query Cc: Xueming Li [ upstream commit 1df32bfd0317a3c8aed1e91b51ca2aa8317812e4 ] The routine that copies out the RSS config can't use memcpy() because 'reta_conf->reta' is an array of uint16_t while 'lif->rss_ind_tbl' is an array of uint8_t. Instead, copy the values individually. Fixes: 22e7171bc63b ("net/ionic: support RSS") Signed-off-by: Akshay Dorwat Signed-off-by: Andrew Boyer --- .mailmap | 1 + drivers/net/ionic/ionic_ethdev.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.mailmap b/.mailmap index aada8ea84c..65c0e8e0ac 100644 --- a/.mailmap +++ b/.mailmap @@ -29,6 +29,7 @@ Akash Saxena Akeem G Abodunrin Akhil Goyal Akihiko Odaki +Akshay Dorwat Alain Leon Alan Brady Alan Carew diff --git a/drivers/net/ionic/ionic_ethdev.c b/drivers/net/ionic/ionic_ethdev.c index 340fd0cd59..008e50e0b9 100644 --- a/drivers/net/ionic/ionic_ethdev.c +++ b/drivers/net/ionic/ionic_ethdev.c @@ -561,7 +561,7 @@ ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev, struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); struct ionic_adapter *adapter = lif->adapter; struct ionic_identity *ident = &adapter->ident; - int i, num; + int i, j, num; uint16_t tbl_sz = rte_le_to_cpu_16(ident->lif.eth.rss_ind_tbl_sz); IONIC_PRINT_CALL(); @@ -582,9 +582,10 @@ ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev, num = reta_size / RTE_ETH_RETA_GROUP_SIZE; for (i = 0; i < num; i++) { - memcpy(reta_conf->reta, - &lif->rss_ind_tbl[i * RTE_ETH_RETA_GROUP_SIZE], - RTE_ETH_RETA_GROUP_SIZE); + for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++) { + reta_conf->reta[j] = + lif->rss_ind_tbl[(i * RTE_ETH_RETA_GROUP_SIZE) + j]; + } reta_conf++; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:34.054127802 +0800 +++ 0102-net-ionic-fix-RSS-query.patch 2024-03-05 17:39:30.883566497 +0800 @@ -1 +1 @@ -From 1df32bfd0317a3c8aed1e91b51ca2aa8317812e4 Mon Sep 17 00:00:00 2001 +From 9583f634f31a41bf41c38f0b6f60b41c41fd61eb Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 1df32bfd0317a3c8aed1e91b51ca2aa8317812e4 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index d066dc35b6..dc7cd0497d 100644 +index aada8ea84c..65c0e8e0ac 100644