From patchwork Tue Nov 19 08:23:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13879503 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2083.outbound.protection.outlook.com [40.107.22.83]) (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 97D79158D96 for ; Tue, 19 Nov 2024 08:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732005582; cv=fail; b=XhSLUKoNeVVN4+MOiMcz6SSljOoaYMwWtgAcgh5puodN2HNY2d2KruDh3JPft4tsQtP9rUHhCW9jt5NdM7OBrX1JLeuWP7he5uBLgP4bDIQMrRWeZxEqBDXy4J8VtrCdzLmiR556dAQm8wP87UuRJg4QwuGuWJTtclau7YjuvXo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732005582; c=relaxed/simple; bh=1YLGXTuRp1219LuDh43hdqAWtmENgnZ+xvWR/Q5akOg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=jEbsM3dbqrw//OjxNvgkLdlHzrl9F//oLDrq2ActIVD14TErv/LFWqBqMT97xOKmWFQiDCmu+iUBH9z67f3XJByCJJ3IEENuVJCGchJ2pDUz3LpJlle8GrQzj+fK0y/BRIWybGEAtVt6JRkujrfBpsOtLOfGWCyR/i5tW9OLiMU= 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=DyAks3D/; arc=fail smtp.client-ip=40.107.22.83 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="DyAks3D/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JWvw4HtT6Fy9No6VyGMsAkrXGVYRhJSapYRFi+DzO+9WRuAILseBj6bQGuO76n0vzVEpJcEStydmQVC9WZu+i+IHtOPWPDGm33KRetMSNG8sPuNGjd5DthZCHzUhGq5v3wbZj7oxFG5wVFDCwCuQ6J9BaSytDuBWKUmzWlBRRfL7XnRyWgn4Hkqw/ZLAJ2srnZmn0vf7M2EKWwNYH9aRJK5/B4v20ZA6DZv4hwcgbhUH4gNC92zN1WyJaSBvzJq7MyCWbtr33OARU6yEobxgCK7P8n8KZnpx4/mmFGcW+R/UtYqIgZO8PyJ+azmfWapStyzvYOu1cCrD847EiOqcxQ== 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=djU8hL6xT5JUCxCZ9kde87cfB2xUGpB6f1/eX/MPbZw=; b=Z/lWjrzisFWThsdbzvOxh4F6a8uvXH9VqgZclE8JuqkCHsCa8p/eDEUwiOL0ky6yb3ZZ82u+Tfm6SH/OUJn8ZR9k7Hk8kPt+/avEVOxKuoKdkX0pqq38mCEyDbBLkUQjbMB0618jUcqk0sXvdWTlk1VeV21dBHxULCGnnGGeMiB25L19+L7Nj5JrdQaGIcy2KhUndFdkz7e1o7ylLcWieVx3mjEaF2eSd48qOGEsyVkVNeUwUozlLK9fQWyruJkjF/YeQOQfp3GeM1M04JWC608q4qyACaVnE45f5+GEZ/y/A4ZsAfVmes+eIUgim01ahAZxD7gnVmQu+chtZO15hQ== 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=djU8hL6xT5JUCxCZ9kde87cfB2xUGpB6f1/eX/MPbZw=; b=DyAks3D/LamYUx1XnE2QA7XgzVFFCju934UeeL3hr1l5m68P2Kf+7BGGDbi4PZEZp9DV1UOk2l6LNjz49a9k79oSQnBzpA9FDqOLe8rR9BeUtBa8OquiLO/6SCFPUXknF87tdASB6jair7eSmqZ41jD6msFO6XffFJ51XUvcrQivMkTBIuweQDyS/x6AWYsCth4Gu7avSsIDgi7wBDnfQNMugzY3lBx+HNVJIMhB6FEGGRRBFA9e+vZ7LQXFbo9S+VPCBdfq4Su7itggs3Kb3ag4nPkvHQeJjvZW8h5gkB71nBigrKv20Qim97ZuaeOOHrusBTf1dD0lTyo7IKD78g== 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 AM7PR04MB7160.eurprd04.prod.outlook.com (2603:10a6:20b:119::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Tue, 19 Nov 2024 08:39:37 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%7]) with mapi id 15.20.8158.023; Tue, 19 Nov 2024 08:39:37 +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 Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v6 net-next 0/5] Add more feautues for ENETC v4 - round 1 Date: Tue, 19 Nov 2024 16:23:39 +0800 Message-Id: <20241119082344.2022830-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2P153CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::10) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|AM7PR04MB7160:EE_ X-MS-Office365-Filtering-Correlation-Id: d8001552-8e09-4078-0e0c-08dd0875b348 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: KZOVzlWINdYBg65XNe9biSIgDbTQKogTKN6UqOXv/HIeiFAvJ6gVqD0SXrl9M10IMYV0kQFngj6FzprB9d9rsbjO44k431JvPb/rb6IWPZP+eGit47VP87IYtdFh8b7+rxwnvbc6Bg39MbWs4hfmeKIyaP/MbtjAgb3rbb/mApZcSUK/zVKSK1jxYUPTXqHZwjG0eHZZYXTeoi3DYcTrsX0Gf5Hn1q7/EWqXSJjxh+KYAy+P6x59eXp7CUMJ+oP4GKa7NWPB1AXb1bA6kFdq2LYV7xQOrcFmVRCNBWaePGtxIXNunxyWUxAMMmUV4tYJQG6NW3cDuz3LGA+w+E7nt7GIarxJk9HKFzKYvwlBu0DqARgZOF+nKyo2Vs5PXt5kxcI+oltuy8RB2Xtsv93JTTXjLLBD+3p2xhufPkZ4mzERgfhi8mwEb71SX58WOU0mYanawgOMcrEdtMf/fc8zB4K6koHRcGQwyUuFnMzahNawqojqgHLZ9SwbP2Ke4inRIijOFGpbeunMnB2m/uHquGMJ5r2U/JXv6cBKxMdtwyf1rSHjT6UuOaiun8btC1bhZ8pvQRaNc/3f+2ZSb39/rRPmQY3uHkdcfFw6zpiyrVsmogylGhtjHv8UM3cAKbbIr4W7OpCRYdK7E5oPwiwvzl9B3jlAnXK74XpSZhXOiyL9U2eWj4FuHZeLsXwntHbvwY2LlpH1L/yvXw8RC6EHKqQhrkL1Tqz78ExlYZRNODch8+07DBqlN/BCPeE6UYCO11m0Fc1WQRy8X/eZGRpAsOgLcd1LSHCFPnCNq+o6Rmny7IZqlhBItcUdWBIQ2p8K82HuYMg3LYFDFwGk2xh5RGPzqdqg7fibjXQa+0ZDH6ubiSOqK+cL42jWEfqyDKObx5swO7uispUg3KjK+UOMfmqT5Mdo51kH5H0RGtoA4T21cM+5TNDZ/Q2PxfX3AGOadSA5BExcwYNvv7TDREmNrJYCvQ+tHXPjmm8ShC3ht0V9O+iqRvNHI7MNwGDFp2qU1eytrRo8hgnilXeu5gj+Y6FNr4PJnzGmugOWpwclXHnYnKRl3QT6D4FNfY9VYAruBY3sqsi6WL0fBkUny5WhjCJ7io9EHJpD8h75YCeJo/0f35tQH92zsqTUdZCUJZq+NN/wuzDuoUzEcKyt6CraMYHld5bjiQyMiHl+XRWNYnqIgkXnuyb8bq2H7uu7sv1Fo5hJEEKoUobMETePwdj5cctcOFxVrG9lm/QeVPvGrwpLHON/pisbSECt1BYE4UJk8mxpedUizQnTg7uunQMa3jAN4r0WTrmNr99s9CybbB2i64LYsjbiSD5PkcTZdx4uTA2q+TVAvFcTcL5DfTNiNxqtajFhwmWTg7JToCvwEyU= X-Forefront-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)(1800799024)(52116014)(376014)(366016)(38350700014);DI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IopBz8drZ1cq1MVfbQJMpA9Z2UJlnk5sOgp2XH6CjYWlZJBrTqdbdBLgoSxKpmUEBsI3Bq57R/5oEeMUOtPvDm90VavaXc9pIzl6LTTbqZ0WduIfO1N79KnexZaYuOTLgTyi4vH9bHtK0bOeeiH8HrYlLeqLkCaP4a0UDUriBnbClJBGLI4HxGtRUxGNCd8U5+OkWxbPFzS86UwQ2grPdSEzCNbX4Tq7lczZjNxyRlFyhZ9UlQwPLD1lG4lZWBvrCgMxF0xUgnwerEnPaumiGCwd91jAd3bhZvMbtxUGSChwvY9wPwRg9mlPZzGyGe3HcNSg2uJiRtE7BSJpoBJfEcVAUNmE2msNe5BmwZdl7ZL8e5zwPNyXLLmzRrIUD7kn7E07LDwyGa9sWhPMMspVOs/Tu5DipjCEjxY2Gkh/Lmwra9s4ZbnFM6rNaPLtoZgI/eYxgmzs9ID77HH1ojki7VuhJ2aihAgW8wLCsi9K0dhN3cHYFUS1AzxMRn1ew4pMQTx1RVNRCptFEU9G33hCLLwumETFRtPCemPyfXOwf29qm47XWSw90T7GqmxEr9UxgcEXA+h59FLG9eWu/yhJbe93RioTsJ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8001552-8e09-4078-0e0c-08dd0875b348 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2024 08:39:37.1601 (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: sPDug6a5fQa6KFShcM/imua6pk2MySRZgT7Iy7BTlIHf5RAg0gvLfsivMA9k4GxihFNwK0ErQey4cZ0KP5oihA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7160 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/ --- Wei Fang (5): net: enetc: add Rx checksum offload for i.MX95 ENETC 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 | 333 ++++++++++++++++-- drivers/net/ethernet/freescale/enetc/enetc.h | 32 +- .../net/ethernet/freescale/enetc/enetc4_hw.h | 22 ++ .../net/ethernet/freescale/enetc/enetc_hw.h | 31 +- .../freescale/enetc/enetc_pf_common.c | 16 +- .../net/ethernet/freescale/enetc/enetc_vf.c | 7 +- 6 files changed, 407 insertions(+), 34 deletions(-)