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 6AD5441D8D for ; Mon, 27 Feb 2023 08:14:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 652C640ED6; Mon, 27 Feb 2023 08:14:07 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2053.outbound.protection.outlook.com [40.107.95.53]) by mails.dpdk.org (Postfix) with ESMTP id 4F21D410DC for ; Mon, 27 Feb 2023 08:14:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oGp9JivIp80vc+YvNj/wnYuXiaoKP6NbqMhBc9JTCuH0fId1u5m++lJbQ/6WJomHS3Vh2p6q3PF/NicmCr2boIirdTrqUQQnzZYlwBj/N5/gmTJtKg1Z13zwG07A/ADn0vVDLsbXs2UBOexRg4xf8BMYpZmr0Ff2ni4hDXaZRCqW8y19+qmaqSIovAJWsruFgHjGiwfHdfoNoA8BuVAoHi0PCZFyfpveeS/wcV6B1shZyUYaklWNt/JiXRUu2J/STWgskSTvQbSQPLgOiKRoNdQnr3F0JnA8rFsMvk1mo/uVgI24QgxLUthfAt6d9V3dYGmEJzomHezjyT//bUOnKw== 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=uSSVP64CzvGxeJ/cR4fah6VzVld4Pma92v03vyi9mmI=; b=CGaIvh0AwhP+zMOKJzbFK9qcPiZlBNXGW0L77SDbayUnXtTJO9lm6TR7qy+7XuXi1VJu+ypZgsS1IwsCZpDp0qCFeYFP+0r/rLk4s+mCXiYIRuwm44yKBn1fWXWP3QaRpDP782eegG75n1lzcWub77ysq1nSZrRrX09y/V0wZg9QPA/LrMjXj/r4k4jdPBIX5rbkRRZWpJd3M/4BSKR4ACzdVQD6K0RAMpGXpAn2+EBjaOTmMRoc/XC/gxn9KepbG7CtiY+RpB4A3Hfg4bKMw2+SDADibGkwpiXULJ3iJwboFHzcxFTN5j8i9AqiJurZe/OeTMMf42S1+dEmPFwuEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=trustnetic.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=uSSVP64CzvGxeJ/cR4fah6VzVld4Pma92v03vyi9mmI=; b=D67gEbiLb3ltxakqmC+KjQL+eVcT+RC7IULzMaV+Sd2KwkhxYyL63zwtHKeE+v5pOLOksdRBBgj8TYX3oXbpmjAt5OXRGUOFV9a6c6coLiKyzO0DR4Y4zxl1UWergv/xTFgAZWhwMeBrDisSonoFHiEWEwNQt4GwgBAPzE0eCzkmD67m7KC34xl4jCAK+wqOBiPZn6vavC1s/9GznMIBJXuDrpHJMjE4gZ7YObyGsIbqy85NDDAZ5Hh1pKiVVVq1+PZjg2oe7rXSvsn+k8TFQws2wGmI5XcLkMd7Jwi6TejClgO7q2mqNJFSn7MvwcXeU1wjurRtOXV8iPQWJ3tigw== Received: from BN6PR17CA0038.namprd17.prod.outlook.com (2603:10b6:405:75::27) by SJ2PR12MB7919.namprd12.prod.outlook.com (2603:10b6:a03:4cc::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.26; Mon, 27 Feb 2023 07:14:02 +0000 Received: from BL02EPF00010209.namprd05.prod.outlook.com (2603:10b6:405:75:cafe::ff) by BN6PR17CA0038.outlook.office365.com (2603:10b6:405:75::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.28 via Frontend Transport; Mon, 27 Feb 2023 07:14:01 +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 BL02EPF00010209.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:14:01 +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.36; Sun, 26 Feb 2023 23:13:50 -0800 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, 26 Feb 2023 23:13:48 -0800 From: Xueming Li To: Jiawen Wu CC: dpdk stable Subject: patch 'net/txgbe: fix Rx buffer size in config register' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:00:25 +0800 Message-ID: <20230227070107.15664-117-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-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: 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: BL02EPF00010209:EE_|SJ2PR12MB7919:EE_ X-MS-Office365-Filtering-Correlation-Id: a5e29127-e20a-4af2-c8d9-08db189233ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UOFO024Gg0iLaElwjQmFupdZ8KJgN63zdawjnZ7+sUr4Silg0US/SSuWfjPJXXRJ0XuYsr9Ks+wy2YOoCbvH2I3lQTqkVY6li8WW21L96+dXBKAynAej7E/Yf5HrVWalCj8bqoqgZmnkYAVJBZEOd/UZ4c4zFQqbQwi+U8k01BNYD3wbBXTIhZ//iOfRaZEO3sWT60X9+UNT8UiZDn9waj0xySmOWX6P4EySztt7C/5QiDI/x79CpvVZ243Vos+77qa3fYEhMHRkSo5fW+EPK2cL2g0XpB8pQMojV2HI69cN38zuUhDnXyNrkjsf0lbvtaJ+oabIeFgbVLPQ0ztvZ5zdfEA/awgzGnY0WnlDmSRDYPpmhrd/RxFA7k8Wuv78jLfEehqt3ltsXje/vQNRrvB9TjgHP3E4Mx8kbZsgF9NQ0Esd+vOhrT7umddbT9BytE/oOURE32ep/IsH4/DIJfDAKqZI0RQvuHMyGsJHGsxqTI8LL21zKeWEsqzyDYIUc1Lnes+yEQmv26ipYbZYAvd/mPFajevv0337vHZy7Xni0jQXwTAoJIFiptJ9yNk6UO+yfhEVX8dglJ7/NWVaZHmOKHWmiYJ08KMrR2pS9sJUq6+iBX1WMKlPb745Lnk5AjSYVEMzyiqpTPUsXbCn6lyHJE8Tw1ffr3sOG0RNPPwe/IOoEpPN3ub+DALNaNJ0YlC/hGSKs7fYf3zYoT8fv9/5Gn2gqb6mCeVA3m6uCZeXuoPTkyX4pnkivq5AoRQva+0jFQcCtk2kovgpkJEd+4YJhqHmOYAk9xJGigrnnOM= 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:(13230025)(4636009)(396003)(136003)(39860400002)(346002)(376002)(451199018)(40470700004)(36840700001)(46966006)(36756003)(40460700003)(6666004)(1076003)(966005)(53546011)(2616005)(26005)(336012)(6286002)(186003)(16526019)(316002)(70586007)(41300700001)(6916009)(70206006)(4326008)(8676002)(7696005)(2906002)(8936002)(7636003)(82740400003)(36860700001)(86362001)(55016003)(478600001)(82310400005)(356005)(5660300002)(40480700001)(426003)(47076005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:14:01.4507 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5e29127-e20a-4af2-c8d9-08db189233ce 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: BL02EPF00010209.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7919 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 03/01/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/commit/?h=22.11-staging&id=a93bb50b6c95b0b202df23f9eb263d6edf9436d4 Thanks. Xueming Li --- >From a93bb50b6c95b0b202df23f9eb263d6edf9436d4 Mon Sep 17 00:00:00 2001 From: Jiawen Wu Date: Wed, 15 Feb 2023 10:00:56 +0800 Subject: [PATCH] net/txgbe: fix Rx buffer size in config register Cc: Xueming Li [ upstream commit 8a3ef4b89e6dd0247355fdf3a77ff7ec1db28d8d ] When round up buffer size to 1K, to configure the register, hardware will receive packets exceeding the buffer size in LRO mode. It will cause a segment fault in the receive function. Fixes: be797cbf4582 ("net/txgbe: add Rx and Tx init") Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/txgbe/txgbe_rxtx.c b/drivers/net/txgbe/txgbe_rxtx.c index 021f281fbb..427f8b82ac 100644 --- a/drivers/net/txgbe/txgbe_rxtx.c +++ b/drivers/net/txgbe/txgbe_rxtx.c @@ -4392,7 +4392,7 @@ txgbe_dev_rx_init(struct rte_eth_dev *dev) */ buf_size = (uint16_t)(rte_pktmbuf_data_room_size(rxq->mb_pool) - RTE_PKTMBUF_HEADROOM); - buf_size = ROUND_UP(buf_size, 0x1 << 10); + buf_size = ROUND_DOWN(buf_size, 0x1 << 10); srrctl |= TXGBE_RXCFG_PKTLEN(buf_size); wr32(hw, TXGBE_RXCFG(rxq->reg_idx), srrctl); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:44.656228000 +0800 +++ 0118-net-txgbe-fix-Rx-buffer-size-in-config-register.patch 2023-02-27 14:08:40.869237000 +0800 @@ -1 +1 @@ -From 8a3ef4b89e6dd0247355fdf3a77ff7ec1db28d8d Mon Sep 17 00:00:00 2001 +From a93bb50b6c95b0b202df23f9eb263d6edf9436d4 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 8a3ef4b89e6dd0247355fdf3a77ff7ec1db28d8d ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org