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 E218E43E57 for ; Sat, 13 Apr 2024 14:53:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5A5340A6E; Sat, 13 Apr 2024 14:53:18 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2047.outbound.protection.outlook.com [40.107.223.47]) by mails.dpdk.org (Postfix) with ESMTP id B3F5C4068E for ; Sat, 13 Apr 2024 14:53:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e0qCIX4FJMEv7cC+qnoFFkXr6fS8YNC3Ng5VWUXvliMgN4dQEx9Czr7BU7JsWiXAKkAnUoFBRKPIPiPDLY33WgoI8mJgdAM4Wf2r80DFwuK3x9c8g+RJrd8WLNZ+4PCn82VfNcT+aj2QVZOCt5oGdG576EUhp2p46IRBp9QvRL8UvIhy8VUvqD+e6UiMnaD1YpYwCG5Hr5DWh1mR/Mb/MgvPzglPhzbapVlUt6SgxGpSiwJF0NVvf/rfOnrgSqU2hdBuA//LqdxXw7O70i0wo5cZ5XWd17pIPAC9krafbjz5BkxkWmKRsX3cu2MQa7VtTGjjfir4GSgJ0dj3VMsntA== 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=uzVjf20yTzXx9jJ40nbiqaLSYqAM1gCDGa8BnzNHpGY=; b=SYSN1SQcv11LlmyBMMmNkv5fFG93ObdwtN2KjNM2jhTpQ+KmxV+OGjHf30K5SztMpyvAYBXIvbGeoqrgG3Dc0nw+j3iXhMB48wZXzwFYn/4YmIjyPdTt+/2NdIhTjP+kXIWxpY2to5pGKQOYKe30FK84JtfZrvW7bVUDLpyaU4A4GrDbrEb32a1VRXMHlQr6llFitveOA/ZBT5Aa/0kf1PYJZwfYlPa+fo5e7FNHpsiuWiRyflROHCYqQrX7cX+YW9MuRmxnIZSmeD4rol5dMqVN6+BBW0uHIwhK7CScUD5TaE/Zt9AZ0rmtcokwf+YO4AGPC7RSlWtYXYTn61sfuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.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=uzVjf20yTzXx9jJ40nbiqaLSYqAM1gCDGa8BnzNHpGY=; b=jHcPZIHAbg9gXOtT4KUDV3gtvKLJ6WHI98I1NkSTpysuNdQqVFIIpdqco5LvtVgiHQG1uqIwFwcNOEj4evePFY1XbgXX9LWPGcj7N9ciABn+Sp0TRcfaInSorPE3xc6t+XwEvp1b9Xvt6vpfMwMmHGOxx8f6ARQisEgKsSOLV6z1E7nvLP4NVg6C8beBjCd1yYsWfwdwKoA3/ykr8LIpfE38yGO86Dl9ttr6u9KyjbRscdAnCHrDQJ1iDKaEKNCMLxeiohYeORCxWJiQeQ8Tq/NLaQfaAk6CcJMxQ7+AQBY1JLjHbw6u/yRaCsLCq3Z+YGvzEqGdy1OOG9SNTFXC/Q== Received: from SJ0PR03CA0015.namprd03.prod.outlook.com (2603:10b6:a03:33a::20) by IA1PR12MB6260.namprd12.prod.outlook.com (2603:10b6:208:3e4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Sat, 13 Apr 2024 12:53:14 +0000 Received: from SJ1PEPF00001CE0.namprd05.prod.outlook.com (2603:10b6:a03:33a:cafe::b9) by SJ0PR03CA0015.outlook.office365.com (2603:10b6:a03:33a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.30 via Frontend Transport; Sat, 13 Apr 2024 12:53:14 +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 SJ1PEPF00001CE0.mail.protection.outlook.com (10.167.242.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Sat, 13 Apr 2024 12:53:14 +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; Sat, 13 Apr 2024 05:53:09 -0700 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; Sat, 13 Apr 2024 05:53:08 -0700 From: Xueming Li To: Sunil Kumar Kori CC: dpdk stable Subject: patch 'net/cnxk: fix MTU limit' has been queued to stable release 23.11.1 Date: Sat, 13 Apr 2024 20:48:34 +0800 Message-ID: <20240413125005.725659-34-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240413125005.725659-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> <20240413125005.725659-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CE0:EE_|IA1PR12MB6260:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b066db1-c2c1-4e75-41d3-08dc5bb8aed4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S243rySLEOKsHEMZ2nSNAYFb/ddzi3dQFytBsEOhM590AW9daFNK1efgzuiJH16ZlR1KPqM/k3GIs9dw3kFF+QNAJiSUuLBH/bTAHQ2tmkZNLbdjCsI+3t/qdpOwvG32Xb9ls2O1ddYJ2+Y4Sns5IYEqyCmSw58HMe98j61xi2rihK93qEiSqmaJwOk3EDxfGdbocUQpK62jIskc23VvstfSPXhwzATlPQ8zKtgwVrqL1bEpdkwBsUc00bnOYjNPzN2Ksd4Uznxda268yrkwUEUeXNzDrmrryG+zeOc59tzQmiR9wXY24yPKuSXO1mnzvfCfiB6UhmaSzbX6QtOpXK0R2JX+tf3u4S2bIok8qNJS/SKLACT5ZE5XTgQmHvj9znVQpuIPL9o31xA0u6N9c7JYTby04s7m7M8tYlc+MzOwtFyGHhyktdBfxq1y2ftcXPC2SmlbGxEgmcYXeCBUojGDk+IcoekD2haRwAHGB2BFv75RCm5OuJ+YPfE3aMgMI0bNqlRmV2tAi4vCr76CBKa3ypaDj6KjbOFhIMG3J2NVa9E+9s6NdZ35ngsOwfEyEb/rXRf7iDy9/IwGepiBKJrPUQVbwVDW9eAOEDBFaM3SZwSZr2jUoUFyYTSWfgyCz0oIia9iMxwZslPqcI4eBJNcjvxso2teCULfNh4KCxk91wHy62mmTxbOFfKEV+QO92QF1lEoA50JrVuNTeVEpVz57ZwriJgrW03GYBHoMQFB/z5fd21yJLgGm9XjHBCd 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)(1800799015)(82310400014)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2024 12:53:14.4711 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b066db1-c2c1-4e75-41d3-08dc5bb8aed4 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: SJ1PEPF00001CE0.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6260 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 04/15/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=f4c83ba01c38bf22ca2bb3d2ada958a0c4f041ec Thanks. Xueming Li --- >From f4c83ba01c38bf22ca2bb3d2ada958a0c4f041ec Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Mon, 26 Feb 2024 19:05:30 +0530 Subject: [PATCH] net/cnxk: fix MTU limit Cc: Xueming Li [ upstream commit 402de2fd8729b61a3ace67c597e99893acb426d4 ] Device can support maximum frame size up to 9212 bytes. While configuring MTU, overhead is considered as ethernet header size, CRC and 2 * (VLAN tags) which translates to 26 bytes. Exposed overhead to the user via rte_eth_dev_info() is 18 bytes which were leading to set wrong Rx frame size. Fixes: 8589ec212e80 ("net/cnxk: support MTU set") Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index 2fdad8b4b6..3c77f79fcc 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -20,8 +20,7 @@ cnxk_nix_info_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *devinfo) devinfo->max_tx_queues = RTE_MAX_QUEUES_PER_PORT; devinfo->max_mac_addrs = dev->max_mac_entries; devinfo->max_vfs = pci_dev->max_vfs; - devinfo->max_mtu = devinfo->max_rx_pktlen - - (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN); + devinfo->max_mtu = devinfo->max_rx_pktlen - CNXK_NIX_L2_OVERHEAD; devinfo->min_mtu = devinfo->min_rx_bufsize - CNXK_NIX_L2_OVERHEAD; devinfo->rx_offload_capa = dev->rx_offload_capa; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-04-13 20:43:06.148319129 +0800 +++ 0034-net-cnxk-fix-MTU-limit.patch 2024-04-13 20:43:04.947753997 +0800 @@ -1 +1 @@ -From 402de2fd8729b61a3ace67c597e99893acb426d4 Mon Sep 17 00:00:00 2001 +From f4c83ba01c38bf22ca2bb3d2ada958a0c4f041ec Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 402de2fd8729b61a3ace67c597e99893acb426d4 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -22 +24 @@ -index 4962f3bced..56049c5dd2 100644 +index 2fdad8b4b6..3c77f79fcc 100644