From patchwork Thu Dec 19 05:47:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13914506 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2066.outbound.protection.outlook.com [40.107.104.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43C9413AD22; Thu, 19 Dec 2024 06:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734588262; cv=fail; b=muX6sNmFWilj/FXv565yM/v2uYQKdboNO6E8jsDaWlS3vfdtwVSpLrnLKOkbL5cF5dyfIHNFz0xGiNEuc9BzLAJ1qljy7587NtlYuTAiTKuF4449ox1yNE+moepGnptVmQpMG1YVt2OUPhjbTpx1Is8cEEldeZh9lQOVI9IEQig= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734588262; c=relaxed/simple; bh=nR/SQshg5WuKA4eSIi4UcKYOqjEdqWbwiyvN/lsQi6k=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=Y7rFdFGudpB7n5wZItGBU2qUggN1zjgjE3wYlvjsENut1vyKRH4SQTE7NT7uCplwAAhVDpcOA4XQqSfvjeTvxqhxo+gWX+99LzUJ6XkGVhcWOPqZ9BoKPTbkJGea9ZqKp6Ji/4RfJWmstd/+qdaS3+a2oMDBF2fNJxz6O4U4+Gs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=WH1IvFk8; arc=fail smtp.client-ip=40.107.104.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="WH1IvFk8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q7x3Lax8WZiX9dT7t0nouPQ1UeG0MtETfmJgZjwL2aBildKh1LIZ/cQUXpByICzBCDKoGdimFJPRiUJXqw95u11JvOscIYR2rU5C3rswc6nOloqlmEbvH0X8Btb/2bbqTxayVl/t37K+RcZ/3Vku0DVG99BgZXvbI78CLHcPz87SFf3k/Hdt/aZHyzYEqIk52k3qCAZSw6zI9HzOy/+I7Mq7drMaE1jZuqFy1zNzANlrJlWKi9SH7I60ObXQjmE5Ap5hfuJRmNFztdTKx64ZOPBz9Q3rO7c5/PJJCPpRrLId6+r5uCm3Gla5wDkwJP7Vai2WBZncSPlzCqjQuVYhlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zbxJjFawwsxH3kyv9VZETt1n9GWT37zNz39YTESzYBs=; b=v+iMzLqrDWNCj1b7pBpNMCOFT6iB82sp8KISoDJbl3RO3zvrFjOxGC5OZaY9cnKa6ITispoP5leNl9U5t+5yonv+7+jejhhEfenjHED3HZYNTWuWEV8MhMCWcIHWxOOsRthYjJEJnUTbl713Q+7DISU27bvRD0H3hBfY1MbpbOZScd30JYFSPsvTcblmdZrPb9veviezQ5O34K+OWpja7Kcu07edEO2nMBIqyZNvScHNE3k2se6fmPE0MrvODEZIO5oUA+GZTKynqMhQ1JL3QkBZ20lYm15hQCEGLLj+XXPIPJx3JvUefRTRmquJI2IhJFl7/uSpvMEq8UNlmjT2+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zbxJjFawwsxH3kyv9VZETt1n9GWT37zNz39YTESzYBs=; b=WH1IvFk8GbsJ3FgQEcqQFiRuuH94HH5AJNvYiFuRL9ZILLbj1zHGi6Tge2wuaSJZ5KzPRCTxzy7k3AGN5N262yHKenGNSTCNAhqMZ+PabHeeJlTXFhwvha8VFbaGe0cHSa2g2EwyvgWpOTM0E07J73O5jBoHmqiSRI9Igghllda8Kki9Y66dySGnGvJgOcqGyBCfiaVh///H+ZgYlpVfOl+eHXObCxxKIgLOgkRnpWMrs3mgdaOocF9soY0gHxGOqcbjBCNIS5azh7Aqxlv95owm40g8aA8ooEb1BSAEtL9Db+KQ8RNfoDzGkTogxuC1QBs43NUb3ye6/Ho0RodIeg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by AM7PR04MB7032.eurprd04.prod.outlook.com (2603:10a6:20b:112::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 06:04:17 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%6]) with mapi id 15.20.8272.005; Thu, 19 Dec 2024 06:04:17 +0000 From: Wei Fang To: claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, xiaoning.wang@nxp.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, frank.li@nxp.com, horms@kernel.org, idosch@idosch.org, aleksander.lobakin@intel.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v9 net-next 0/4] Add more feautues for ENETC v4 - round 1 Date: Thu, 19 Dec 2024 13:47:51 +0800 Message-Id: <20241219054755.1615626-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: JH0PR01CA0107.apcprd01.prod.exchangelabs.com (2603:1096:990:59::7) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|AM7PR04MB7032:EE_ X-MS-Office365-Filtering-Correlation-Id: a21396b1-f84d-47ff-51cd-08dd1ff2f8d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: IFShFbqRiqYnZc6kfZI5OR+tg5Rhef2yStQMd/xIEk6BuuuQfU4lBw6Djksr0ZjIepmpb1NOwva7N1gXX2gB1pXoPburuBDWu1z287OTygKPPOc3dDx68AweGGbA3xwsK5w49RbNg87onQPW8jVEUW3+CA5iT4XhBBaR7VUDrY8Sk+7Kkt27ScxC7Q4RUyR/Jc9DvnM4p+/Nwv2gQVsgXiVPPKFEOF+KI5NwWxGob+rPciPCX7UVHR3Nur/4JQi4GDw8+y0/XPDX1SxYKh3x982gpOLAeKMhwi8kH4mbh4E8x6hSnixI2qo5wXkmcE2r3+JHx8oDndvsMR9mV/jEDQ12TSE5rTP13UHOirW9EVfunf9X/fd8X0rqqTrUoKld8jrrHaG93Tx6zduYIzv3RLnzn5DbuN4eIS08KSAqu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Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(7416014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EZ33aeXoor0sNSmyxd9YoqsVxMZqfAjw9WkJwrkt4FiedbgRBITLjrvgZvqotoaTveftSzQG7RmH73sBbylgTaAeDpLk5BuXw1vsBu3dcAkqUbI25CvfJL/4kndIm/OiVi/QCHsbzju2xi6UpnCUx/+HphxPEpcRmhxRgf5LKO2BDXDkAktUKGSIXWdW8aZTxsm/9gkQhNemXbEkISL/KPNsun/7C9/bil8ygcFJPyY2jbPIpOZN20GWdOQP+MSXVR4twKaMPfQT4VsxDrWhwSitQ1FCkPsRDGONZdacAcdto83CfdkZxlsaEA0c47JsH/b3A8lr4OOgVBQTx8OfiiWu16TTJK3eGrxGy/cV25cWVkdO2m5C0dT0GeVAMy3YiuEajpsHbJ4OWpeF19aUbBrmH+WXpeJpNje2b87pO3y1nJOU8oMNGOn8DbUCHODVOv+KTXKkJg2MqveyR/aQvmLXX5MMCQaLwRvnliyZ3e6zLE6nc0eDpoovZ3gkPna3bAhcLK8ksC0jquvrvsUHR7ymviAYMVg1gjlRV/imu1bfHB1qRX3oF3IrdvCUZttEzcIC904HafvPbDOvRgBhayPrGfVrwZS4hCa1fpMYcAocl/kC61re9UeWXiP8svXRVMCmOp7tNvmbtWkjWyXb9lVkcIh9QfvRgEdZHbMApPThHNLa/PJ7yUOryHDgSFGE5H8J7q/AubBapBF1Gf/UKV4kz51M1bv+qREDir2MB6JN+O7ZfuaVWLY107A5KW8d04AeirYu/u6TYqgCbASvsaVw/f4QVLWLm6B4KJaUGdWs3EmivxeD6hv6HQ9lToLUA7AAq2RPOzABEVseW1uUtarJwJ5GdiXCZbWf0hpQly79UdNyheM+w9lMWfdQ39RNr/+vML7RfDofLZY7fgqiO3J/OZdFm5lit5f8I6UkRa10LGVwwHBhJcBZ6YuC7Saue3mcdkxtb3Vuz0NvvJBf72v4ffKxaitP97x5v6yn+jtF0jhHrIWRl/xhnn6sd3kGOjasx5zgkYjh5Xk95OPjLvk/JVJcYdYp2UdrxKauqYYygIaA0gP7Uacef2RcccrlNqNAmRk4u1dZoPlLG0e2+z/YmMepjF9kI/kyWXVaI2EMBm+RTRtJn7XPG/VCogGT26qWNBs2UN13pSOIiox5aLlq3M6u8J/hEzFSd6Ecv9BE3jXH66DZCUWKmHRerbWwmFj2fqteARlncG8M/4sN+xyXV+Ga2xzQY4gaa6N3REfrxxve78HyK3IeQesyH83gkcTIvrP0EySCGLmPXGHAy7KSRkI5egQh+kUF1PCOk56EzE9YQ43SiOaUKX+hlIdmqaICjRj07x3RdqkYuOAdzebejHFOJCkIVCFR475w51K1uC8rCaxNzkxIuawSy5q+QeEMafLn4hl9QC0+uYC8VYlGnpy1y3c3QCQpsHWlCWnUzcgs7+0pmKt66OSaZQSlIVQJYoUe2MqdXILwBBRyvI9yvVEo/G1689dUyT+c1Ei8lEXR35BtqpTD9tarHXIOzCsUysatDXPYuh9/tHNpcfcANOBj5KvmM6JBS4wsxQ1P+v+ivKHEa2SwPIUA7taW X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a21396b1-f84d-47ff-51cd-08dd1ff2f8d0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 06:04:17.6379 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gWVKC3d7dmAjtyVdT7YdGAxRCZ8Eylwrm9tguR03jVHMijHQ7DxDdzc4XNjbMinDYmZeGSb5aLSfMIIy7uTYmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7032 X-Patchwork-Delegate: kuba@kernel.org Compared to ENETC v1 (LS1028A), ENETC v4 (i.MX95) adds more features, and some features are configured completely differently from v1. In order to more fully support ENETC v4, these features will be added through several rounds of patch sets. This round adds these features, such as Tx and Rx checksum offload, increase maximum chained Tx BD number and Large send offload (LSO). --- v1 Link: https://lore.kernel.org/imx/20241107033817.1654163-1-wei.fang@nxp.com/ v2 Link: https://lore.kernel.org/imx/20241111015216.1804534-1-wei.fang@nxp.com/ v3 Link: https://lore.kernel.org/imx/20241112091447.1850899-1-wei.fang@nxp.com/ v4 Link: https://lore.kernel.org/imx/20241115024744.1903377-1-wei.fang@nxp.com/ v5 Link: https://lore.kernel.org/imx/20241118060630.1956134-1-wei.fang@nxp.com/ v6 Link: https://lore.kernel.org/imx/20241119082344.2022830-1-wei.fang@nxp.com/ v6 RESEND Link: https://lore.kernel.org/imx/20241204052932.112446-1-wei.fang@nxp.com/ v7 Link: https://lore.kernel.org/imx/20241211063752.744975-1-wei.fang@nxp.com/ v8 Link: https://lore.kernel.org/imx/20241213021731.1157535-1-wei.fang@nxp.com/ --- Wei Fang (4): net: enetc: add Tx checksum offload for i.MX95 ENETC net: enetc: update max chained Tx BD number for i.MX95 ENETC net: enetc: add LSO support for i.MX95 ENETC PF net: enetc: add UDP segmentation offload support drivers/net/ethernet/freescale/enetc/enetc.c | 330 +++++++++++++++++- drivers/net/ethernet/freescale/enetc/enetc.h | 29 +- .../net/ethernet/freescale/enetc/enetc4_hw.h | 23 ++ .../net/ethernet/freescale/enetc/enetc_hw.h | 31 +- .../freescale/enetc/enetc_pf_common.c | 13 +- .../net/ethernet/freescale/enetc/enetc_vf.c | 7 +- 6 files changed, 403 insertions(+), 30 deletions(-)