From patchwork Mon Nov 11 01:52:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13870171 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2040.outbound.protection.outlook.com [40.107.22.40]) (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 B83193C3C; Mon, 11 Nov 2024 02:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731290882; cv=fail; b=hiGf/ZUbpuwSrNb11BuwhVyF6JuyIPMJK2VtaWj+TWmhIGTPHuUdzJdtUgkfhAmf+HEPbkDmJLJLXJOh8RTPFv0wex1r5MbbTUgKwsm4XRwvFeL3C3MuNDf8Ckrbd0PIZl1SW5D6VXYqSknHysT2BtjDYWEfJIOpmX9n2TqhWdI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731290882; c=relaxed/simple; bh=fyseDxdf1XFDXTXV2lLmKQ5Ejpft/6eT/nbUBzxrthg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=cVIMm0QV6TJfck7AiIrrnQwwMo+PA6xKDvuByP9erUKP42Xxu/HERy4N5Ec2cELPVAfoosJqPn1xVYefLPfHhRHiXFKayqzxIGxjZ1F9npQVfTXrZouxoZ54dtEquVs5Tr9pIzw9J9gPRSO40m480JSNtpAMTpQGzAvwfaEcBms= 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=hPuQRxFZ; arc=fail smtp.client-ip=40.107.22.40 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="hPuQRxFZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Cg5ASjSTFEyoXUO/ZmR3eXgL8Tn6573zSTj+wSWxTVPfIzrV8lwKK224yVaSXIakaoM/fjTTAXeyhRiXYsCIVRXN45r4wGo6K6ZyFOpm1xaRwg6UoHOAqcQWpi46oTkAafP09u1CyaxDJS9eY9oe7ApNO6MN92lLyMWISSOAJQdToWU4y4Mgxchn0MLDwSDgYzUrz3DULfRBuwuDY/3xkvO2PEPnYhmTxHAaYaTz9EXv0kSejxMAK6bEnw+jg7rF5v6XpbiNF8d6Sa7WxGZ2TsF1zCfLqGEX6Ebrm0a/I9DcSd5FvRGixhEPhlsl/1VzhN8Ry/I+psbjCUj/tXV78Q== 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=xHW1vOkm5Swy4eSdky976EolrI3FzsFChXY0atI0SQc=; b=vZ8fpSNqqcdqGawrMFg3OamUh1m8cBXn644B5fnQfjy1IjmHMaBmcMCryP1AkeWWeN3VjLV+08/eRmJJy7JmFcBnmFIBDQX1fIjuwAtjfc9BGeNUOoLXnF8X0ikCzJtekzydO/xH8oQcOgokAC/N5+tI0gmCY0fQWjpYjOnJjNoF3POvyZFG5DHRktHMVIfaHkWFKUNPGzmSLNwW9Omena3lnT4cww/2hhEeCBYn+meAWED4crcPRQfWshWU0lbnzlTQhG85/ZOehgrko+e+Ydo+KlgGB0Anau3TcMNuIaB4FcbtpdiBRkGh98kYVCjx1Jv+ag8lzT3pAYsrBcIZEw== 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=xHW1vOkm5Swy4eSdky976EolrI3FzsFChXY0atI0SQc=; b=hPuQRxFZA3ckoGT6Iy6n9ax9Mo1+0yASq+IZAemkFpF5hIDpKStKITeXWwbSNsMqqsQaWwterJ5qUosV4N+radYjO03QGsd8h6IUSTYVYGvg5KXyRhWwQLrxriCeWHPQTkFLcnbRZ7wx7vlgLVHhgWsK2Ha+Wql3C0STT5WmZbhNWGatMm0TDQIHCAC8wH2/NsgLsPWj2PsrrZIRNmlXkJ4Vk2Bynth+krM7rp5Kii0ganY7XfVTw/f7qCDbpsw6I1+5jN5lhfeU6I8Z0Hch6tCThmQqoqY2D0HrsZyoyUqQV/Xc5/jurlLUu6MfB5TpQmxbS3vVlxWwZXAhyCwckA== 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 AM8PR04MB7745.eurprd04.prod.outlook.com (2603:10a6:20b:234::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 02:07:58 +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.8137.027; Mon, 11 Nov 2024 02:07:57 +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 v2 net-next 0/5] Add more feautues for ENETC v4 - round 1 Date: Mon, 11 Nov 2024 09:52:11 +0800 Message-Id: <20241111015216.1804534-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2P153CA0023.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::6) 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_|AM8PR04MB7745:EE_ X-MS-Office365-Filtering-Correlation-Id: 438607bb-bb0b-4efa-39be-08dd01f5a92c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: UOR1fqD5WBp00IlR6gpR8wOQBixnAM9Lv8wWdiftet1sasAdcrMyQfvyQlQEk773lforpBVa3rM651OfXBFJgdpOcYQyL5zQRpCbBR2EMenSyxcsab+atc9OyH9lAIqjPlwAtSCWW+4pokBa639E8KTcX33ixMVpLqOh3DydjXGRAhF59inB8IvQjXRgCC1Daa3XiqXpv7QX4sBaIKNnlYKwKdPOTagGB0mAZipZsZhOqgDDAuwBdpuB0MjLJOuLfLbJJvBmTJDhNDcxKLbtn29mWVamF8sDEOVXX6/qcltUnjIGO4hIFIqUhrmpeByNgreQ+pZdixjGsZo71PeKTnFtkFb6M49xnd4W0DMbVvZVu98ULGl184EGX31nG3rLy3AeIzeZqmp0D079/YnM8LhNBS8Mo3isCucNk3dpGlYWhJge65TIifBWo0lAgQ7Zg2Pk3SxhBohWnSXiUitTEoNFGFUcaRPBHO+g7MR5qx70Cfoaq2+IIp55+ljKmPhNX5JeMhGaa6rm2Kl2hseyDPbirrmq+VxjCTmPh3NH6cjGA7wegyJGT30OVN08Hp3ut89OKXRZ0LO4DJo3LkDGjW1yl0/YaUCl2nEhtMWuP5QzoiPFC3D3+CEaDqrSPifYfrbkfjznv6MjYOTTGF13nN42eVpW9GRtvi/k2tudFanFc2Mn2Jpq//gS0ujcBYZtGCAarssm/k7l8Qt+DAvZ/VCRfEfEc7l9SciBNsXM3DYV4Cqo86KjRl3c44Qrwv7KXt3I57Gjv3peTixXqFB8YGtoX2+kQat6sec3G8E3tvMedYziiCtlve0LWZQQZnGtQjlBZT3nE46qQhpAu4/XW4RnQUwlZvLR1mLgxfVVM7X92scXMNw6qJYgwBNLf5txo3aIboZ7K01t+eQ0DZDtQNy1fBfNm6rJuDdmNjhx5+Umm9jdVNm45YgigiQY7S4qIquiF7/U3/skui/GIEGSg3SZkMbWhwannOAb12d2u7annejfF34Sdw+r+4UtJbmyP/NX08QsCran8cqvcLe9oFTfxF+UEx3tJEu8xSAENqPYC5hmjLPi8JnmKTpM7y/WUVs6BGpF0H35qtsSMXDHvXL2hANhZLiyADo5/ylfqfEuPpfNafvPVT+BbOsC/sgcpeoYquFTeJCXytpFYTBnDkZ+i5ZSHfd/GdmQMc/3L/e59QSFuxwZJxoHHnVnIg+6CCBjopnR1hlqnvAzL4nHZmfYhhTTQJvqT5l0WUZ9577Wz+JGO7tBzpbP8EXcyjMm51sB8XlNa2j9LckVmBXn6uoVAw8VBPIulj8FwcwLaIGZ2w1QSsxXyA0bBxOWxxfTarhKwDIYw6oP3o3++zhfJoeex00TtnbyMaXkXm1SbVQ= 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)(366016)(376014)(52116014)(1800799024)(38350700014);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+Q0C7ucQykpx1q5AM8BUfKqz+EW+6QrvKnH/Lqh/1a2hd9qRZbDgMgY9MAVYlsJh2JEBiMD/mJfFp+nhclvrON0hTI6l4MhdPtuBpQS1Sim3vnJbHxsyYLwI7qCXCnr90QWm1EE+w471BO0A6LK7BsKxwd83omwOoXanj0AFR/kXh+l42ydr1+L5xfUPB3SpQOB/IYQLVKMFTWIPmQ8m6d6MBSVzXJhIK0HCWcpJUWYQZ8MnchENdNtIySbk5yv8dOibKONvL4h8VG8/af1dpadD5WO2BkNfUKy5jPdHI1ErbXeMsIQDps2kmJvcHYiPlNEBR2cr0Rvalh7lFNsMYaroA9luPqKAT2VIXiECaQiv4wJea1xVllad+hdei7D8ykZv/Fa2lMAmQJMEe2rkz+J8gGc6cSyg7YXxWGxaqHX7dVm6n5gbRV8+De8lo4op+u52zFIN7rsQ/VhdTDswsH71KGNV1JLM/Unl/MhyOldb2IHyZHPuofY7DJc0ncntLm/P3dpn7nbtIUFzQkkAKdedIYq3RYIpM9exh4z4C5axnngBGUZ0FwtS5aSl9NsEoyeZpu5qXDGyQ7dJXPG X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 438607bb-bb0b-4efa-39be-08dd01f5a92c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 02:07:57.9126 (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: JVr2Xvbfjl7Xh24M4DBGjFQ2RJq7uCn5tNOOnjUZqbRCf1uUlUM82xNOTJj4ECQJRDgozPOk1lh8YpSp/vcO2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7745 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/ --- 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 | 346 ++++++++++++++++-- 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, 420 insertions(+), 34 deletions(-)